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

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.cpp

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/Response.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp
index 57aae12be562310594ce068f42802a85c396d5a5..1eae69faeb9e7754f8e58ef74455b5dbc8b93a99 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -15,7 +15,7 @@
#include "bindings/core/v8/V8FormData.h"
#include "bindings/core/v8/V8PrivateProperty.h"
#include "bindings/core/v8/V8URLSearchParams.h"
-#include "bindings/modules/v8/ByteStringSequenceSequenceOrDictionaryOrHeaders.h"
+#include "bindings/modules/v8/ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders.h"
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMArrayBufferView.h"
#include "core/dom/URLSearchParams.h"
@@ -231,8 +231,9 @@ Response* Response::Create(ScriptState* script_state,
if (init.headers().isByteStringSequenceSequence()) {
r->headers_->FillWith(init.headers().getAsByteStringSequenceSequence(),
exception_state);
- } else if (init.headers().isDictionary()) {
- r->headers_->FillWith(init.headers().getAsDictionary(), exception_state);
+ } else if (init.headers().isByteStringByteStringRecord()) {
+ r->headers_->FillWith(init.headers().getAsByteStringByteStringRecord(),
+ exception_state);
} else if (init.headers().isHeaders()) {
r->headers_->FillWith(init.headers().getAsHeaders(), exception_state);
}
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.cpp ('k') | third_party/WebKit/Source/modules/fetch/ResponseInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698