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

Unified Diff: public/platform/WebURLRequest.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 | « public/platform/WebServiceWorkerRequest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebURLRequest.h
diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h
index a140421ddec0141e3a800d64c47987aa00fac1b7..abc70ce5d554d7a3fab965a95bd40e60673244ca 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -110,6 +110,13 @@ public:
FrameTypeTopLevel
};
+ enum FetchRequestMode {
+ FetchRequestModeSameOrigin,
+ FetchRequestModeNoCORS,
+ FetchRequestModeCORS,
+ FetchRequestModeCORSWithForcedPreflight
+ };
+
class ExtraData {
public:
virtual ~ExtraData() { }
@@ -215,6 +222,10 @@ public:
BLINK_PLATFORM_EXPORT bool skipServiceWorker() const;
BLINK_PLATFORM_EXPORT void setSkipServiceWorker(bool);
+ // The request mode which will be passed to the ServiceWorker.
+ BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const;
+ BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode);
+
// Extra data associated with the underlying resource request. Resource
// requests can be copied. If non-null, each copy of a resource requests
// holds a pointer to the extra data, and the extra data pointer will be
« no previous file with comments | « public/platform/WebServiceWorkerRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698