Chromium Code Reviews| Index: public/platform/WebURLRequest.h |
| diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h |
| index abc70ce5d554d7a3fab965a95bd40e60673244ca..adfed3f0765979af92190c7295cc182619639493 100644 |
| --- a/public/platform/WebURLRequest.h |
| +++ b/public/platform/WebURLRequest.h |
| @@ -64,7 +64,8 @@ public: |
| PriorityVeryHigh, |
| }; |
| - // Corresponds to Fetch's "context": http://fetch.spec.whatwg.org/#concept-request-context |
| + // Corresponds to Fetch's "context": |
| + // http://fetch.spec.whatwg.org/#concept-request-context |
|
Mike West
2014/10/01 08:16:34
Nit: Why change this?
horo
2014/10/01 08:32:21
Followed yhirano's comment in PS1.
But we don't ne
|
| enum RequestContext { |
| RequestContextUnspecified = 0, |
| RequestContextAudio, |
| @@ -102,7 +103,8 @@ public: |
| RequestContextXSLT |
| }; |
| - // Corresponds to Fetch's "context frame type": http://fetch.spec.whatwg.org/#concept-request-context-frame-type |
| + // Corresponds to Fetch's "context frame type": |
| + // http://fetch.spec.whatwg.org/#concept-request-context-frame-type |
|
Mike West
2014/10/01 08:16:34
Nit: And this?
horo
2014/10/01 08:32:21
Done.
|
| enum FrameType { |
| FrameTypeAuxiliary, |
| FrameTypeNested, |
| @@ -117,6 +119,12 @@ public: |
| FetchRequestModeCORSWithForcedPreflight |
| }; |
| + enum FetchCredentialsMode { |
| + FetchCredentialsModeOmit, |
| + FetchCredentialsModeSameOrigin, |
| + FetchCredentialsModeInclude |
| + }; |
| + |
| class ExtraData { |
| public: |
| virtual ~ExtraData() { } |
| @@ -226,6 +234,10 @@ public: |
| BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const; |
| BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode); |
| + // The credentials mode which will be passed to the ServiceWorker. |
| + BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const; |
| + BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode); |
| + |
| // 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 |