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

Unified Diff: content/browser/streams/stream.h

Issue 23543002: Add an IPC to abort Stream construction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/child/webblobregistry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream.h
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h
index a0599de3c7b657eaa0dab2ec2cad61acd083ab5a..3937f5b9e38d0dcfdd6bcaec65031fe85b0caf14 100644
--- a/content/browser/streams/stream.h
+++ b/content/browser/streams/stream.h
@@ -58,6 +58,10 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
// Removes the write observer. |observer| must be the current observer.
void RemoveWriteObserver(StreamWriteObserver* observer);
+ // Stops accepting new data, clears all buffer, unregisters this stream from
+ // |registry_| and make coming ReadRawData() calls return STREAM_ABORTED.
+ void Abort();
kinuko 2013/08/27 13:35:56 (ok this looks to be the right (same) order as in
+
// Adds the data in |buffer| to the stream. Takes ownership of |buffer|.
void AddData(scoped_refptr<net::IOBuffer> buffer, size_t size);
// Adds data of |size| at |data| to the stream. This method creates a copy
@@ -87,10 +91,6 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
return last_total_buffered_bytes_;
}
- protected:
- // Stops accepting new data and make ReadRawData() return STREAM_ABORTED.
- void Abort();
-
private:
friend class base::RefCountedThreadSafe<Stream>;
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/child/webblobregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698