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

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

Issue 2848963002: Clean up bindings/core/v8 (Part 1) (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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ReadableStreamBytesConsumer.h" 5 #include "modules/fetch/ReadableStreamBytesConsumer.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "bindings/core/v8/ScopedPersistent.h"
12 #include "bindings/core/v8/ScriptFunction.h" 11 #include "bindings/core/v8/ScriptFunction.h"
13 #include "bindings/core/v8/ScriptState.h" 12 #include "bindings/core/v8/ScriptState.h"
14 #include "bindings/core/v8/ScriptValue.h" 13 #include "bindings/core/v8/ScriptValue.h"
15 #include "bindings/core/v8/V8BindingMacros.h" 14 #include "bindings/core/v8/V8BindingMacros.h"
16 #include "bindings/core/v8/V8IteratorResultValue.h" 15 #include "bindings/core/v8/V8IteratorResultValue.h"
17 #include "bindings/core/v8/V8Uint8Array.h" 16 #include "bindings/core/v8/V8Uint8Array.h"
18 #include "core/streams/ReadableStreamOperations.h" 17 #include "core/streams/ReadableStreamOperations.h"
18 #include "platform/bindings/ScopedPersistent.h"
19 #include "platform/wtf/Assertions.h" 19 #include "platform/wtf/Assertions.h"
20 #include "platform/wtf/text/WTFString.h" 20 #include "platform/wtf/text/WTFString.h"
21 #include "v8/include/v8.h" 21 #include "v8/include/v8.h"
22 22
23 namespace blink { 23 namespace blink {
24 24
25 class ReadableStreamBytesConsumer::OnFulfilled final : public ScriptFunction { 25 class ReadableStreamBytesConsumer::OnFulfilled final : public ScriptFunction {
26 public: 26 public:
27 static v8::Local<v8::Function> CreateFunction( 27 static v8::Local<v8::Function> CreateFunction(
28 ScriptState* script_state, 28 ScriptState* script_state,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 DCHECK_EQ(state_, PublicState::kReadableOrWaiting); 212 DCHECK_EQ(state_, PublicState::kReadableOrWaiting);
213 state_ = PublicState::kErrored; 213 state_ = PublicState::kErrored;
214 reader_.Clear(); 214 reader_.Clear();
215 Client* client = client_; 215 Client* client = client_;
216 ClearClient(); 216 ClearClient();
217 if (client) 217 if (client)
218 client->OnStateChange(); 218 client->OnStateChange();
219 } 219 }
220 220
221 } // namespace blink 221 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698