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

Unified Diff: Source/modules/serviceworkers/HeaderMap.h

Issue 304053003: ServiceWorker: support Request.{url,method,origin,headers} [blink] (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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/modules/serviceworkers/FetchEvent.idl ('k') | Source/modules/serviceworkers/HeaderMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/HeaderMap.h
diff --git a/Source/modules/serviceworkers/HeaderMap.h b/Source/modules/serviceworkers/HeaderMap.h
index 4f6fd9d02389c7351b418ee16fe2bb3a633b9ccf..3e5b47f567df5b2a6a43bbedb306ed5034928d16 100644
--- a/Source/modules/serviceworkers/HeaderMap.h
+++ b/Source/modules/serviceworkers/HeaderMap.h
@@ -19,6 +19,7 @@ class ScriptValue;
class HeaderMap FINAL : public ScriptWrappable, public RefCounted<HeaderMap> {
public:
static PassRefPtr<HeaderMap> create();
+ static PassRefPtr<HeaderMap> create(const HashMap<String, String>& headers);
// HeaderMap.idl implementation.
unsigned long size() const;
@@ -34,6 +35,7 @@ public:
private:
HeaderMap();
+ explicit HeaderMap(const HashMap<String, String>& headers);
void forEachInternal(PassOwnPtr<HeaderMapForEachCallback>, ScriptValue* thisArg);
// FIXME: this doesn't preserve ordering while ES6 Map type requires it.
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.idl ('k') | Source/modules/serviceworkers/HeaderMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698