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

Unified Diff: content/browser/download/byte_stream.h

Issue 10392111: Use ByteStream in downloads system to decouple source and sink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added some histogram statistics. Created 8 years, 7 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: content/browser/download/byte_stream.h
diff --git a/content/browser/download/byte_stream.h b/content/browser/download/byte_stream.h
index 8265b8dd20e241885ceba8918e0bbfa745d6a4f0..d4c5b0bc768c84e7957e0e7a2f51edeac9fe27b7 100644
--- a/content/browser/download/byte_stream.h
+++ b/content/browser/download/byte_stream.h
@@ -82,6 +82,7 @@ public:
// is the callers responsibility to handle races with space becoming
// available (i.e. in the case of that race either of the before
// or after callbacks may be called).
+ // The callback will not be called after ByteStreamInput destruction.
virtual void RegisterCallback(const base::Closure& source_callback) = 0;
};
@@ -109,6 +110,7 @@ class CONTENT_EXPORT ByteStreamOutput {
// though note that it is the callers responsibility to handle races
// with data becoming available (i.e. in the case of that race
// either of the before or after callbacks may be called).
+ // The callback will not be called after ByteStreamOutput destruction.
virtual void RegisterCallback(const base::Closure& sink_callback) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698