|
Lines 35-41
a/Source/WebCore/loader/cache/CachedResource.h_sec1
|
| 35 |
#include <time.h> |
35 |
#include <time.h> |
| 36 |
#include <wtf/HashCountedSet.h> |
36 |
#include <wtf/HashCountedSet.h> |
| 37 |
#include <wtf/HashSet.h> |
37 |
#include <wtf/HashSet.h> |
| 38 |
#include <wtf/OwnPtr.h> |
|
|
| 39 |
#include <wtf/TypeCasts.h> |
38 |
#include <wtf/TypeCasts.h> |
| 40 |
#include <wtf/Vector.h> |
39 |
#include <wtf/Vector.h> |
| 41 |
#include <wtf/text/WTFString.h> |
40 |
#include <wtf/text/WTFString.h> |
|
Lines 269-275
protected:
a/Source/WebCore/loader/cache/CachedResource.h_sec2
|
| 269 |
|
268 |
|
| 270 |
class CachedResourceCallback { |
269 |
class CachedResourceCallback { |
| 271 |
public: |
270 |
public: |
| 272 |
static PassOwnPtr<CachedResourceCallback> schedule(CachedResource* resource, CachedResourceClient* client) { return adoptPtr(new CachedResourceCallback(resource, client)); } |
271 |
static std::unique_ptr<CachedResourceCallback> schedule(CachedResource* resource, CachedResourceClient* client) { return std::unique_ptr<CachedResourceCallback>(new CachedResourceCallback(resource, client)); } |
| 273 |
void cancel(); |
272 |
void cancel(); |
| 274 |
private: |
273 |
private: |
| 275 |
CachedResourceCallback(CachedResource*, CachedResourceClient*); |
274 |
CachedResourceCallback(CachedResource*, CachedResourceClient*); |
|
Lines 279-285
protected:
a/Source/WebCore/loader/cache/CachedResource.h_sec3
|
| 279 |
CachedResourceClient* m_client; |
278 |
CachedResourceClient* m_client; |
| 280 |
Timer<CachedResourceCallback> m_callbackTimer; |
279 |
Timer<CachedResourceCallback> m_callbackTimer; |
| 281 |
}; |
280 |
}; |
| 282 |
HashMap<CachedResourceClient*, OwnPtr<CachedResourceCallback>> m_clientsAwaitingCallback; |
281 |
HashMap<CachedResourceClient*, std::unique_ptr<CachedResourceCallback>> m_clientsAwaitingCallback; |
| 283 |
|
282 |
|
| 284 |
ResourceRequest m_resourceRequest; |
283 |
ResourceRequest m_resourceRequest; |
| 285 |
SessionID m_sessionID; |
284 |
SessionID m_sessionID; |