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

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

Issue 2715233002: //third_party/WebKit/Source/modules: include v8 as a user, not system, header (Closed)
Patch Set: Revert things that use inspector headers. Created 3 years, 9 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>
8
9 #include <algorithm>
10
7 #include "bindings/core/v8/ScopedPersistent.h" 11 #include "bindings/core/v8/ScopedPersistent.h"
8 #include "bindings/core/v8/ScriptFunction.h" 12 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/ScriptState.h" 13 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/ScriptValue.h" 14 #include "bindings/core/v8/ScriptValue.h"
11 #include "bindings/core/v8/V8BindingMacros.h" 15 #include "bindings/core/v8/V8BindingMacros.h"
12 #include "bindings/core/v8/V8IteratorResultValue.h" 16 #include "bindings/core/v8/V8IteratorResultValue.h"
13 #include "bindings/core/v8/V8Uint8Array.h" 17 #include "bindings/core/v8/V8Uint8Array.h"
14 #include "core/streams/ReadableStreamOperations.h" 18 #include "core/streams/ReadableStreamOperations.h"
19 #include "v8/include/v8.h"
15 #include "wtf/Assertions.h" 20 #include "wtf/Assertions.h"
16 #include "wtf/text/WTFString.h" 21 #include "wtf/text/WTFString.h"
17 #include <algorithm>
18 #include <string.h>
19 #include <v8.h>
20 22
21 namespace blink { 23 namespace blink {
22 24
23 class ReadableStreamBytesConsumer::OnFulfilled final : public ScriptFunction { 25 class ReadableStreamBytesConsumer::OnFulfilled final : public ScriptFunction {
24 public: 26 public:
25 static v8::Local<v8::Function> createFunction( 27 static v8::Local<v8::Function> createFunction(
26 ScriptState* scriptState, 28 ScriptState* scriptState,
27 ReadableStreamBytesConsumer* consumer) { 29 ReadableStreamBytesConsumer* consumer) {
28 return (new OnFulfilled(scriptState, consumer))->bindToV8Function(); 30 return (new OnFulfilled(scriptState, consumer))->bindToV8Function();
29 } 31 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 DCHECK_EQ(m_state, PublicState::ReadableOrWaiting); 212 DCHECK_EQ(m_state, PublicState::ReadableOrWaiting);
211 m_state = PublicState::Errored; 213 m_state = PublicState::Errored;
212 m_reader.clear(); 214 m_reader.clear();
213 Client* client = m_client; 215 Client* client = m_client;
214 clearClient(); 216 clearClient();
215 if (client) 217 if (client)
216 client->onStateChange(); 218 client->onStateChange();
217 } 219 }
218 220
219 } // namespace blink 221 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698