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

Unified Diff: Source/modules/serviceworkers/RequestInit.cpp

Issue 534133002: [WIP] bindings: Introduce PropertyBag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/RegistrationOptionList.h ('k') | Source/modules/serviceworkers/Response.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/RequestInit.cpp
diff --git a/Source/modules/serviceworkers/RequestInit.cpp b/Source/modules/serviceworkers/RequestInit.cpp
index 5a23a6e3773fb61e2356be4f3a99415701f963c2..1ec20e2b01d99b666a565a40681bc5ec0b0a4db0 100644
--- a/Source/modules/serviceworkers/RequestInit.cpp
+++ b/Source/modules/serviceworkers/RequestInit.cpp
@@ -5,12 +5,12 @@
#include "config.h"
#include "RequestInit.h"
-#include "bindings/core/v8/Dictionary.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8Blob.h"
#include "bindings/core/v8/V8FormData.h"
#include "bindings/core/v8/custom/V8ArrayBufferCustom.h"
#include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h"
+#include "bindings/modules/v8/DictionaryForModules.h"
#include "core/fileapi/Blob.h"
#include "modules/serviceworkers/Headers.h"
#include "platform/blob/BlobData.h"
@@ -21,16 +21,16 @@ namespace blink {
RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, ExceptionState& exceptionState)
{
- DictionaryHelper::get(options, "method", method);
- DictionaryHelper::get(options, "headers", headers);
+ options.get("method", method);
+ options.get("headers", headers);
if (!headers) {
- DictionaryHelper::get(options, "headers", headersDictionary);
+ options.get("headers", headersDictionary);
}
- DictionaryHelper::get(options, "mode", mode);
- DictionaryHelper::get(options, "credentials", credentials);
+ options.get("mode", mode);
+ options.get("credentials", credentials);
v8::Local<v8::Value> body;
- if (!DictionaryHelper::get(options, "body", body) || body->IsUndefined() || body->IsNull())
+ if (!options.get("body", body) || body->IsUndefined() || body->IsNull())
return;
OwnPtr<BlobData> blobData = BlobData::create();
v8::Isolate* isolate = toIsolate(context);
« no previous file with comments | « Source/modules/serviceworkers/RegistrationOptionList.h ('k') | Source/modules/serviceworkers/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698