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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Body.cpp

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 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 unified diff | Download patch
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 "modules/fetch/Body.h" 5 #include "modules/fetch/Body.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "bindings/core/v8/V8ArrayBuffer.h" 9 #include "bindings/core/v8/V8ArrayBuffer.h"
10 #include "bindings/core/v8/V8ThrowException.h"
11 #include "core/dom/DOMArrayBuffer.h" 10 #include "core/dom/DOMArrayBuffer.h"
12 #include "core/dom/DOMTypedArray.h" 11 #include "core/dom/DOMTypedArray.h"
13 #include "core/dom/ExecutionContext.h" 12 #include "core/dom/ExecutionContext.h"
14 #include "core/fileapi/Blob.h" 13 #include "core/fileapi/Blob.h"
15 #include "modules/fetch/BodyStreamBuffer.h" 14 #include "modules/fetch/BodyStreamBuffer.h"
16 #include "modules/fetch/FetchDataLoader.h" 15 #include "modules/fetch/FetchDataLoader.h"
17 #include "platform/bindings/ScriptState.h" 16 #include "platform/bindings/ScriptState.h"
17 #include "platform/bindings/V8ThrowException.h"
18 #include "platform/wtf/PassRefPtr.h" 18 #include "platform/wtf/PassRefPtr.h"
19 #include "platform/wtf/RefPtr.h" 19 #include "platform/wtf/RefPtr.h"
20 #include "public/platform/WebDataConsumerHandle.h" 20 #include "public/platform/WebDataConsumerHandle.h"
21 21
22 namespace blink { 22 namespace blink {
23 23
24 namespace { 24 namespace {
25 25
26 class BodyConsumerBase : public GarbageCollectedFinalized<BodyConsumerBase>, 26 class BodyConsumerBase : public GarbageCollectedFinalized<BodyConsumerBase>,
27 public FetchDataLoader::Client { 27 public FetchDataLoader::Client {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 ScriptPromise Body::RejectInvalidConsumption(ScriptState* script_state) { 228 ScriptPromise Body::RejectInvalidConsumption(ScriptState* script_state) {
229 if (IsBodyLocked() || bodyUsed()) 229 if (IsBodyLocked() || bodyUsed())
230 return ScriptPromise::Reject( 230 return ScriptPromise::Reject(
231 script_state, V8ThrowException::CreateTypeError( 231 script_state, V8ThrowException::CreateTypeError(
232 script_state->GetIsolate(), "Already read")); 232 script_state->GetIsolate(), "Already read"));
233 return ScriptPromise(); 233 return ScriptPromise();
234 } 234 }
235 235
236 } // namespace blink 236 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698