Chromium Code Reviews| Index: third_party/WebKit/Source/core/streams/ReadableStreamController.h |
| diff --git a/third_party/WebKit/Source/core/streams/ReadableStreamController.h b/third_party/WebKit/Source/core/streams/ReadableStreamController.h |
| index c7cace498b0e7c8a4e3fa232b3f2353e4ed88da6..a9206018dc9206599e6b89acd6964bc962194649 100644 |
| --- a/third_party/WebKit/Source/core/streams/ReadableStreamController.h |
| +++ b/third_party/WebKit/Source/core/streams/ReadableStreamController.h |
| @@ -28,17 +28,19 @@ class CORE_EXPORT ReadableStreamController final |
| m_jsController.setPhantom(); |
| } |
| - // Users of the ReadableStreamController can call this to note that the stream has been canceled and thus they |
| - // don't anticipate using the ReadableStreamController anymore. (close/desiredSize/enqueue/error will become no-ops |
| - // afterward.) |
| + // Users of the ReadableStreamController can call this to note that the stream |
| + // has been canceled and thus they don't anticipate using the |
| + // ReadableStreamController anymore. (close/desiredSize/enqueue/error will |
| + // become no-ops afterward.) |
| void noteHasBeenCanceled() { m_jsController.clear(); } |
| bool isActive() const { return !m_jsController.isEmpty(); } |
| void close() { |
| ScriptState* scriptState = m_scriptState.get(); |
| - ScriptState::Scope scope( |
| - scriptState); // will assert context is valid; do not call this method when the context is invalidated |
| + ScriptState::Scope scope(scriptState); // will assert context is valid; do |
| + // not call this method when the |
| + // context is invalidated |
| v8::Isolate* isolate = scriptState->isolate(); |
| v8::Local<v8::Value> controller = m_jsController.newLocal(isolate); |
| @@ -54,8 +56,9 @@ class CORE_EXPORT ReadableStreamController final |
| double desiredSize() const { |
| ScriptState* scriptState = m_scriptState.get(); |
| - ScriptState::Scope scope( |
| - scriptState); // will assert context is valid; do not call this method when the context is invalidated |
| + ScriptState::Scope scope(scriptState); // will assert context is valid; do |
| + // not call this method when the |
| + // context is invalidated |
| v8::Isolate* isolate = scriptState->isolate(); |
| v8::Local<v8::Value> controller = m_jsController.newLocal(isolate); |
| @@ -72,8 +75,9 @@ class CORE_EXPORT ReadableStreamController final |
| template <typename ChunkType> |
| void enqueue(ChunkType chunk) const { |
| ScriptState* scriptState = m_scriptState.get(); |
| - ScriptState::Scope scope( |
| - scriptState); // will assert context is valid; do not call this method when the context is invalidated |
| + ScriptState::Scope scope(scriptState); // will assert context is valid; do |
|
jbroman
2016/10/04 21:09:48
nit: do you mind putting this on its own line abov
Nico
2016/10/04 21:13:24
Done.
|
| + // not call this method when the |
| + // context is invalidated |
| v8::Isolate* isolate = scriptState->isolate(); |
| v8::Local<v8::Value> controller = m_jsController.newLocal(isolate); |
| @@ -90,8 +94,9 @@ class CORE_EXPORT ReadableStreamController final |
| template <typename ErrorType> |
| void error(ErrorType error) { |
| ScriptState* scriptState = m_scriptState.get(); |
| - ScriptState::Scope scope( |
| - scriptState); // will assert context is valid; do not call this method when the context is invalidated |
| + ScriptState::Scope scope(scriptState); // will assert context is valid; do |
| + // not call this method when the |
| + // context is invalidated |
| v8::Isolate* isolate = scriptState->isolate(); |
| v8::Local<v8::Value> controller = m_jsController.newLocal(isolate); |