Chromium Code Reviews| 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>; |