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

Unified Diff: third_party/WebKit/Source/modules/fetch/Headers.h

Issue 2691513002: Fetch: Make Headers' constructor match the current spec IDL. (Closed)
Patch Set: Rebase again Created 3 years, 8 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: third_party/WebKit/Source/modules/fetch/Headers.h
diff --git a/third_party/WebKit/Source/modules/fetch/Headers.h b/third_party/WebKit/Source/modules/fetch/Headers.h
index 7cf4ce473719f9efb4a7d5c5372a53a8807baab6..3c41b2d2df7ec92f29f081bb7408d9c289d1558a 100644
--- a/third_party/WebKit/Source/modules/fetch/Headers.h
+++ b/third_party/WebKit/Source/modules/fetch/Headers.h
@@ -14,7 +14,7 @@
namespace blink {
-class Dictionary;
+class ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders;
class ExceptionState;
// http://fetch.spec.whatwg.org/#headers-class
@@ -32,11 +32,10 @@ class MODULES_EXPORT Headers final : public GarbageCollected<Headers>,
kNoneGuard
};
- static Headers* Create();
static Headers* Create(ExceptionState&);
- static Headers* Create(const Headers*, ExceptionState&);
- static Headers* Create(const Vector<Vector<String>>&, ExceptionState&);
- static Headers* Create(const Dictionary&, ExceptionState&);
+ static Headers* Create(
+ const ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders&,
+ ExceptionState&);
// Shares the FetchHeaderList. Called when creating a Request or Response.
static Headers* Create(FetchHeaderList*);
@@ -57,7 +56,7 @@ class MODULES_EXPORT Headers final : public GarbageCollected<Headers>,
// These methods should only be called when size() would return 0.
void FillWith(const Headers*, ExceptionState&);
void FillWith(const Vector<Vector<String>>&, ExceptionState&);
- void FillWith(const Dictionary&, ExceptionState&);
+ void FillWith(const Vector<std::pair<String, String>>&, ExceptionState&);
FetchHeaderList* HeaderList() const { return header_list_; }
DECLARE_TRACE();
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/generated.gni ('k') | third_party/WebKit/Source/modules/fetch/Headers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698