Chromium Code Reviews| Index: public/platform/WebServiceWorkerResponse.h |
| diff --git a/public/platform/WebServiceWorkerResponse.h b/public/platform/WebServiceWorkerResponse.h |
| index e119abfcf4d7fe27eb3cd51e2997984f72ac1e72..735647c00f00de89f31b62833deca7f746cc88cb 100644 |
| --- a/public/platform/WebServiceWorkerResponse.h |
| +++ b/public/platform/WebServiceWorkerResponse.h |
| @@ -29,6 +29,15 @@ class WebServiceWorkerResponsePrivate; |
| // and fetch() API to also use it. |
| class BLINK_PLATFORM_EXPORT WebServiceWorkerResponse { |
| public: |
| + enum ResponseType { |
| + BasicType, |
|
jochen (gone - plz use gerrit)
2014/10/01 07:46:34
should be ResponseTypeBasic, etc..
jkarlin
2014/10/01 11:26:57
Done.
|
| + CORSType, |
| + DefaultType, |
| + ErrorType, |
| + OpaqueType, |
| + ResponseTypeLast = OpaqueType |
| + }; |
| + |
| ~WebServiceWorkerResponse() { reset(); } |
| WebServiceWorkerResponse(); |
| WebServiceWorkerResponse(const WebServiceWorkerResponse& other) { assign(other); } |
| @@ -50,6 +59,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 |