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

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

Issue 2393013002: reflow comments in core/{clipboard,streams,testing,timing} (Closed)
Patch Set: comments (heh!) 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..fc22324ff6f5eb579cc96f597ef79ed703b87de4 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
+ // This will assert that the context is valid; do not call this method when
+ // the context is invalidated.
+ ScriptState::Scope scope(scriptState);
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
+ // This will assert that the context is valid; do not call this method when
+ // the context is invalidated.
+ ScriptState::Scope scope(scriptState);
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
+ // This will assert that the context is valid; do not call this method when
+ // the context is invalidated.
+ ScriptState::Scope scope(scriptState);
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
+ // This will assert that the context is valid; do not call this method when
+ // the context is invalidated.
+ ScriptState::Scope scope(scriptState);
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