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

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStreamController.h

Issue 2393013002: reflow comments in core/{clipboard,streams,testing,timing} (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/Pasteboard.h ('k') | third_party/WebKit/Source/core/streams/Stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698