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

Unified Diff: public/platform/WebServiceWorkerResponse.h

Issue 564773004: Fix conversion to WebServiceWorkerResponse headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added xhr end-to-end test 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
« no previous file with comments | « Source/platform/exported/WebServiceWorkerResponse.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerResponse.h
diff --git a/public/platform/WebServiceWorkerResponse.h b/public/platform/WebServiceWorkerResponse.h
index e51363c4592fc36025680bf23eb03ca28091661d..e119abfcf4d7fe27eb3cd51e2997984f72ac1e72 100644
--- a/public/platform/WebServiceWorkerResponse.h
+++ b/public/platform/WebServiceWorkerResponse.h
@@ -20,6 +20,7 @@
namespace blink {
class BlobDataHandle;
+class HTTPHeaderMap;
class WebHTTPHeaderVisitor;
class WebServiceWorkerResponsePrivate;
@@ -50,6 +51,11 @@ public:
WebString statusText() const;
void setHeader(const WebString& key, const WebString& value);
+
+ // If the key already exists, appends the value to the same key (comma
+ // delimited) else creates a new entry.
+ void appendHeader(const WebString& key, const WebString& value);
+
WebVector<WebString> getHeaderKeys() const;
WebString getHeader(const WebString& key) const;
void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
@@ -57,8 +63,7 @@ public:
WebString blobUUID() const;
#if INSIDE_BLINK
- void setHeaders(const HashMap<String, String>&);
- const HashMap<String, String>& headers() const;
+ const HTTPHeaderMap& headers() const;
void setBlobDataHandle(PassRefPtr<BlobDataHandle>);
PassRefPtr<BlobDataHandle> blobDataHandle() const;
« no previous file with comments | « Source/platform/exported/WebServiceWorkerResponse.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698