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

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

Issue 2454983002: Cache-aware Resource loading (Closed)
Patch Set: Created 4 years, 2 months 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/ResourceLoader.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.h b/third_party/WebKit/Source/core/fetch/ResourceLoader.h
index 728f0151c7e5f2e9ef1caeb082a1bb89916d4fe5..7d3f3dcecf06f018bcd4255ccc832f9e6e096f8f 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceLoader.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.h
@@ -67,6 +67,14 @@ class CORE_EXPORT ResourceLoader final
void didChangePriority(ResourceLoadPriority, int intraPriorityValue);
+ bool willActivateCacheAwareLoading(const ResourceRequest&);
yhirano 2016/10/27 07:33:00 activateCacheAwareLoading might be a better name.
Shao-Chuan Lee 2016/10/27 07:42:55 Done.
+
+ void deactivateCacheAwareLoading();
+
+ bool isCacheAwareLoadingActivated() const {
+ return m_isCacheAwareLoadingActivated;
+ }
+
// WebURLLoaderClient
//
// A succesful load will consist of:
@@ -116,6 +124,7 @@ class CORE_EXPORT ResourceLoader final
std::unique_ptr<WebURLLoader> m_loader;
Member<ResourceFetcher> m_fetcher;
Member<Resource> m_resource;
+ bool m_isCacheAwareLoadingActivated;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698