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

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

Issue 2108033005: Specify WTF:: prefix for bind() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ReadableStreamDataConsumerHandle.h" 5 #include "modules/fetch/ReadableStreamDataConsumerHandle.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "bindings/core/v8/ScriptFunction.h" 9 #include "bindings/core/v8/ScriptFunction.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 void notify() 235 void notify()
236 { 236 {
237 if (!m_client) 237 if (!m_client)
238 return; 238 return;
239 m_client->didGetReadable(); 239 m_client->didGetReadable();
240 } 240 }
241 241
242 void notifyLater() 242 void notifyLater()
243 { 243 {
244 ASSERT(m_client); 244 ASSERT(m_client);
245 Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK _FROM_HERE, bind(&ReadingContext::notify, PassRefPtr<ReadingContext>(this))); 245 Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK _FROM_HERE, WTF::bind(&ReadingContext::notify, PassRefPtr<ReadingContext>(this)) );
246 } 246 }
247 247
248 private: 248 private:
249 ReadingContext(ScriptState* scriptState, ScriptValue streamReader) 249 ReadingContext(ScriptState* scriptState, ScriptValue streamReader)
250 : m_reader(scriptState->isolate(), streamReader.v8Value()) 250 : m_reader(scriptState->isolate(), streamReader.v8Value())
251 , m_scriptState(scriptState) 251 , m_scriptState(scriptState)
252 , m_client(nullptr) 252 , m_client(nullptr)
253 , m_pendingOffset(0) 253 , m_pendingOffset(0)
254 , m_isReading(false) 254 , m_isReading(false)
255 , m_isDone(false) 255 , m_isDone(false)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 { 292 {
293 } 293 }
294 ReadableStreamDataConsumerHandle::~ReadableStreamDataConsumerHandle() = default; 294 ReadableStreamDataConsumerHandle::~ReadableStreamDataConsumerHandle() = default;
295 295
296 FetchDataConsumerHandle::Reader* ReadableStreamDataConsumerHandle::obtainReaderI nternal(Client* client) 296 FetchDataConsumerHandle::Reader* ReadableStreamDataConsumerHandle::obtainReaderI nternal(Client* client)
297 { 297 {
298 return new ReadingContext::ReaderImpl(m_readingContext, client); 298 return new ReadingContext::ReaderImpl(m_readingContext, client);
299 } 299 }
300 300
301 } // namespace blink 301 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698