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

Side by Side Diff: Source/modules/serviceworkers/RequestInit.cpp

Issue 723143002: bindings: Transition from ArrayBuffer to DOMArrayBuffer, part 3. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/modules/webaudio/AsyncAudioDecoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "RequestInit.h" 6 #include "RequestInit.h"
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/V8ArrayBuffer.h" 9 #include "bindings/core/v8/V8ArrayBuffer.h"
10 #include "bindings/core/v8/V8ArrayBufferView.h" 10 #include "bindings/core/v8/V8ArrayBufferView.h"
11 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8Binding.h"
12 #include "bindings/core/v8/V8Blob.h" 12 #include "bindings/core/v8/V8Blob.h"
13 #include "bindings/core/v8/V8FormData.h" 13 #include "bindings/core/v8/V8FormData.h"
14 #include "core/fileapi/Blob.h" 14 #include "core/fileapi/Blob.h"
15 #include "modules/serviceworkers/Headers.h" 15 #include "modules/serviceworkers/Headers.h"
16 #include "platform/blob/BlobData.h" 16 #include "platform/blob/BlobData.h"
17 #include "platform/network/FormData.h" 17 #include "platform/network/FormData.h"
18 #include "wtf/ArrayBuffer.h"
19 18
20 namespace blink { 19 namespace blink {
21 20
22 RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E xceptionState& exceptionState) 21 RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E xceptionState& exceptionState)
23 { 22 {
24 DictionaryHelper::get(options, "method", method); 23 DictionaryHelper::get(options, "method", method);
25 DictionaryHelper::get(options, "headers", headers); 24 DictionaryHelper::get(options, "headers", headers);
26 if (!headers) { 25 if (!headers) {
27 Vector<Vector<String> > headersVector; 26 Vector<Vector<String> > headersVector;
28 if (DictionaryHelper::get(options, "headers", headersVector, exceptionSt ate)) 27 if (DictionaryHelper::get(options, "headers", headersVector, exceptionSt ate))
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 blobData->appendText(stringValue, false); 81 blobData->appendText(stringValue, false);
83 blobData->setContentType("text/plain;charset=UTF-8"); 82 blobData->setContentType("text/plain;charset=UTF-8");
84 } else { 83 } else {
85 return; 84 return;
86 } 85 }
87 const long long blobSize = blobData->length(); 86 const long long blobSize = blobData->length();
88 bodyBlobHandle = BlobDataHandle::create(blobData.release(), blobSize); 87 bodyBlobHandle = BlobDataHandle::create(blobData.release(), blobSize);
89 } 88 }
90 89
91 } 90 }
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webaudio/AsyncAudioDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698