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

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

Issue 527703002: [ServiceWorker] Introduce skipServiceWorker flag to blink::WebURLRequest and blink::ResourceRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 1e40dd7e681be03d059859312051bb48e8920ee6..d0530d2bf51322c57d88feaca7104fd4fdfa1f28 100644
--- a/Source/platform/network/ResourceRequest.h
+++ b/Source/platform/network/ResourceRequest.h
@@ -177,6 +177,10 @@ public:
bool downloadToFile() const { return m_downloadToFile; }
void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToFile; }
+ // True if the request should not be handled by the ServiceWorker.
+ bool skipServiceWorker() const { return m_skipServiceWorker; }
+ void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = skipServiceWorker; }
+
// Extra data associated with this request.
ExtraData* extraData() const { return m_extraData.get(); }
void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData; }
@@ -213,6 +217,7 @@ private:
bool m_reportRawHeaders : 1;
bool m_hasUserGesture : 1;
bool m_downloadToFile : 1;
+ bool m_skipServiceWorker : 1;
ResourceLoadPriority m_priority;
int m_intraPriorityValue;
int m_requestorID;
« 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