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

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

Issue 2368913002: Fix stream errors that occur after a stream starts not propagating. (Closed)
Patch Set: fix tests Created 4 years, 3 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/streams/stream.h
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h
index 1422da5ef248c656854b1bf0e6d57e1c56057474..f4a8cf4ff0c55ef6d42ad279cf91338eec52828e 100644
--- a/content/browser/streams/stream.h
+++ b/content/browser/streams/stream.h
@@ -74,7 +74,7 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
void Flush();
// Notifies this stream that it will not be receiving any more data.
- void Finalize();
+ void Finalize(int status);
// Reads a maximum of |buf_size| from the stream into |buf|. Sets
// |*bytes_read| to the number of bytes actually read.
@@ -85,6 +85,8 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
std::unique_ptr<StreamHandle> CreateHandle();
void CloseHandle();
+ int GetStatus();
+
// Indicates whether there is space in the buffer to add more data.
bool can_add_data() const { return can_add_data_; }

Powered by Google App Engine
This is Rietveld 408576698