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

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: 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..3dedb6ba36c38b7a9ea49b5a4f7012610501256a 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -110,6 +110,14 @@ public:
FrameTypeTopLevel
};
+ enum ServiceWorkerRequestMode {
yhirano 2014/09/25 02:08:44 Is this name appropriate? Having FetchRequestMode
horo 2014/09/25 03:55:18 Done.
+ ServiceWorkerRequestModeSkip,
+ ServiceWorkerRequestModeSameOrigin,
+ ServiceWorkerRequestModeNoCORS,
+ ServiceWorkerRequestModeCORS,
+ ServiceWorkerRequestModeCORSWithForcedPreflight
+ };
+
class ExtraData {
public:
virtual ~ExtraData() { }
@@ -211,9 +219,11 @@ public:
BLINK_PLATFORM_EXPORT bool downloadToFile() const;
BLINK_PLATFORM_EXPORT void setDownloadToFile(bool);
- // True if the request should not be handled by the ServiceWorker.
+ // FIXME: Remove this.
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 ServiceWorkerRequestMode serviceWorkerRequestMode() const;
+ BLINK_PLATFORM_EXPORT void setServiceWorkerRequestMode(ServiceWorkerRequestMode);
// Extra data associated with the underlying resource request. Resource
// requests can be copied. If non-null, each copy of a resource requests
« 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