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 |