| Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
|
| index 3b73a98d23c56a0474ec6402bb5d4da03a6774c5..1eceb5d03c69fc3e58d5d1ba40ad1b65e0802224 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
|
| +++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
|
| @@ -139,11 +139,6 @@ class CORE_EXPORT ResourceFetcher
|
| ResourceLoadingFromNetwork,
|
| ResourceLoadingFromCache
|
| };
|
| - void requestLoadStarted(unsigned long identifier,
|
| - Resource*,
|
| - const FetchRequest&,
|
| - ResourceLoadStartType,
|
| - bool isStaticData = false);
|
| static const ResourceLoaderOptions& defaultResourceOptions();
|
|
|
| String getCacheIdentifier() const;
|
| @@ -160,6 +155,13 @@ class CORE_EXPORT ResourceFetcher
|
| // This is only exposed for testing purposes.
|
| HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); }
|
|
|
| + // Workaround for https://crbug.com/666214.
|
| + // TODO(hiroshige): Remove this hack.
|
| + void emulateLoadStartedForInspector(Resource*,
|
| + const KURL&,
|
| + WebURLRequest::RequestContext,
|
| + const AtomicString& initiatorName);
|
| +
|
| private:
|
| friend class ResourceCacheValidationSuppressor;
|
|
|
| @@ -200,6 +202,12 @@ class CORE_EXPORT ResourceFetcher
|
| const ResourceLoaderOptions&);
|
| bool canAccessResponse(Resource*, const ResourceResponse&) const;
|
|
|
| + void requestLoadStarted(unsigned long identifier,
|
| + Resource*,
|
| + const FetchRequest&,
|
| + ResourceLoadStartType,
|
| + bool isStaticData = false);
|
| +
|
| bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPolicy);
|
| bool shouldDeferImageLoad(const KURL&) const;
|
|
|
|
|