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

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

Issue 2389753002: doc.write blocking intervention warning header (Closed)
Patch Set: Feedback incorporated 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/FetchContext.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchContext.h b/third_party/WebKit/Source/core/fetch/FetchContext.h
index 1fd7c66797641cae880c29c22ad19b91c725cbfa..e3d7f7e81041747f9bde53d3c6a62e8ab64abb9b 100644
--- a/third_party/WebKit/Source/core/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/core/fetch/FetchContext.h
@@ -72,8 +72,11 @@ class CORE_EXPORT FetchContext
virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType);
virtual CachePolicy getCachePolicy() const;
+ // Returns the cache policy for the resource. ResourceRequest is not passed as
+ // a const reference as a header needs to be added for doc.write blocking
+ // intervention.
virtual WebCachePolicy resourceRequestCachePolicy(
- const ResourceRequest&,
+ ResourceRequest&,
Resource::Type,
FetchRequest::DeferOption) const;

Powered by Google App Engine
This is Rietveld 408576698