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

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 after the Blink Rename 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 2f515ff7f6db365b2e67b4eeb9338aa09feb51ce..7edee8c8df3a62703355cb47f98627295780bbb4 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();

Powered by Google App Engine
This is Rietveld 408576698