Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.h

Issue 2533983003: Move hacks for Inspector in restoreCachedResourceIfNeeded() to ResourceFetcher (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageValue.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698