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

Unified Diff: Source/platform/network/ResourceRequest.h

Issue 587213003: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl format Created 6 years, 3 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
« no previous file with comments | « Source/platform/exported/WebURLRequest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/ResourceRequest.h
diff --git a/Source/platform/network/ResourceRequest.h b/Source/platform/network/ResourceRequest.h
index 0f495554855fed915326c0352867cd27232aa8e5..591940ea55935384d8027b2ce29a6e22484cf247 100644
--- a/Source/platform/network/ResourceRequest.h
+++ b/Source/platform/network/ResourceRequest.h
@@ -191,6 +191,15 @@ public:
blink::WebURLRequest::FrameType frameType() const { return m_frameType; }
void setFrameType(blink::WebURLRequest::FrameType frameType) { m_frameType = frameType; }
+ blink::WebURLRequest::FetchRequestMode fetchRequestMode() const
+ {
+ return m_fetchRequestMode;
+ }
+ void setFetchRequestMode(blink::WebURLRequest::FetchRequestMode mode)
+ {
+ m_fetchRequestMode = mode;
+ }
+
bool cacheControlContainsNoCache() const;
bool cacheControlContainsNoStore() const;
bool hasCacheValidatorFields() const;
@@ -226,6 +235,7 @@ private:
RefPtr<ExtraData> m_extraData;
blink::WebURLRequest::RequestContext m_requestContext;
blink::WebURLRequest::FrameType m_frameType;
+ blink::WebURLRequest::FetchRequestMode m_fetchRequestMode;
ReferrerPolicy m_referrerPolicy;
mutable CacheControlHeader m_cacheControlHeaderCache;
@@ -263,6 +273,7 @@ public:
int m_appCacheHostID;
blink::WebURLRequest::RequestContext m_requestContext;
blink::WebURLRequest::FrameType m_frameType;
+ blink::WebURLRequest::FetchRequestMode m_fetchRequestMode;
ReferrerPolicy m_referrerPolicy;
};
« no previous file with comments | « Source/platform/exported/WebURLRequest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698