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

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

Issue 2691513002: Fetch: Make Headers' constructor match the current spec IDL. (Closed)
Patch Set: Patch v2 Created 3 years, 10 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 52c4604afa298f00d87f6fd7fd2ed68db9ce82a4..4a83ebcccb0c60d016b7465c915b404863122aa7 100644
--- a/third_party/WebKit/Source/modules/fetch/Headers.h
+++ b/third_party/WebKit/Source/modules/fetch/Headers.h
@@ -14,6 +14,7 @@
namespace blink {
+class ByteStringSequenceSequenceOrDictionaryOrHeaders;
class Dictionary;
class ExceptionState;
@@ -32,11 +33,9 @@ class MODULES_EXPORT Headers final : public GarbageCollected<Headers>,
NoneGuard
};
- 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 ByteStringSequenceSequenceOrDictionaryOrHeaders&,
+ ExceptionState&);
// Shares the FetchHeaderList. Called when creating a Request or Response.
static Headers* create(FetchHeaderList*);

Powered by Google App Engine
This is Rietveld 408576698