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

Unified Diff: third_party/WebKit/Source/modules/fetch/BytesConsumer.h

Issue 2229313002: Make FetchDataLoader accept BytesConsumer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-c++-rs
Patch Set: fix Created 4 years, 4 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/modules/fetch/BytesConsumer.h
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
index d822e752df476febb9e598f6952d587187f2a366..894cfb71a87de559dfdebbea6fe029f5757c64e2 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
@@ -56,9 +56,11 @@ public:
public:
virtual ~Client() {}
- // This function is called when the state changes. This function can
- // be called more than needed, i.e., it can be called even when the
- // state is not actually changed.
+ // This function is called when the state changes (e.g., readable =>
+ // errored). This function can be called more than needed, i.e., it can
+ // be called even when the state is not actually changed, but it is
+ // guaranteed that this function cannot be called after the state
+ // becomes closed or errored.
//
// This function is not called when the state change is trigerred by
// public methods called by a user. For example, when a user reads

Powered by Google App Engine
This is Rietveld 408576698