Chromium Code Reviews| Index: public/platform/WebServiceWorkerResponse.h |
| diff --git a/public/platform/WebServiceWorkerResponse.h b/public/platform/WebServiceWorkerResponse.h |
| index e119abfcf4d7fe27eb3cd51e2997984f72ac1e72..65ab5a1a1e83fde6561783590ed627a64929eaac 100644 |
| --- a/public/platform/WebServiceWorkerResponse.h |
| +++ b/public/platform/WebServiceWorkerResponse.h |
| @@ -29,6 +29,14 @@ class WebServiceWorkerResponsePrivate; |
| // and fetch() API to also use it. |
| class BLINK_PLATFORM_EXPORT WebServiceWorkerResponse { |
| public: |
| + enum ResponseType { |
| + BasicType, |
| + CORSType, |
| + DefaultType, |
| + ErrorType, |
| + OpaqueType, |
| + ResponseTypeLast = OpaqueType |
| + }; |
|
jsbell
2014/09/30 22:14:44
Blank line after this?
jkarlin
2014/10/01 00:11:00
Done.
|
| ~WebServiceWorkerResponse() { reset(); } |
| WebServiceWorkerResponse(); |
| WebServiceWorkerResponse(const WebServiceWorkerResponse& other) { assign(other); } |
| @@ -50,6 +58,9 @@ public: |
| void setStatusText(const WebString&); |
| WebString statusText() const; |
| + void setResponseType(ResponseType); |
| + ResponseType responseType() const; |
| + |
| void setHeader(const WebString& key, const WebString& value); |
| // If the key already exists, appends the value to the same key (comma |