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

Unified Diff: public/platform/WebServiceWorkerRequest.h

Issue 578763003: ServiceWorker: Fix conversion from Request headers to WebServiceWorkerRequest headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Lowercase 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
Index: public/platform/WebServiceWorkerRequest.h
diff --git a/public/platform/WebServiceWorkerRequest.h b/public/platform/WebServiceWorkerRequest.h
index 89a45ae0c0859f46a40dd5f2b47d8b0dc13ccd31..5d84fa05c4cb18ebd91fa92f6715f69d6a50d7b9 100644
--- a/public/platform/WebServiceWorkerRequest.h
+++ b/public/platform/WebServiceWorkerRequest.h
@@ -46,7 +46,13 @@ public:
void setMethod(const WebString&);
WebString method() const;
+ // Keys must be lower cased.
void setHeader(const WebString& key, const WebString& value);
+
+ // If the key already exists, the value is appended to the existing value
+ // with a comma delimiter between them. Keys must be lower cased.
+ void appendHeader(const WebString& key, const WebString& value);
+
void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
void setBlob(const WebString& uuid, long long size);

Powered by Google App Engine
This is Rietveld 408576698