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

Unified Diff: public/platform/WebServiceWorkerResponse.h

Issue 617003003: Make WebServiceWorkerResponse support ResponseType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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
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

Powered by Google App Engine
This is Rietveld 408576698