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

Unified Diff: net/quic/quartc/quartc_stream_interface.h

Issue 2916033003: Landing Recent QUIC changes until 03:18 AM, May 28, UTC (Closed)
Patch Set: A few more EXPORTs. Created 3 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
« no previous file with comments | « net/quic/quartc/quartc_stream.cc ('k') | net/quic/quartc/quartc_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quartc/quartc_stream_interface.h
diff --git a/net/quic/quartc/quartc_stream_interface.h b/net/quic/quartc/quartc_stream_interface.h
index 25e928ec95cb103102d62415310c5708da367cd7..5e816a328e321f6bbb403c452c7e437e9cbaec68 100644
--- a/net/quic/quartc/quartc_stream_interface.h
+++ b/net/quic/quartc/quartc_stream_interface.h
@@ -14,7 +14,7 @@ namespace net {
// in-order. To send/receive data out of order, use separate streams. To
// send/receive unreliably, close a stream after reliability is no longer
// needed.
-class QuartcStreamInterface {
+class QUIC_EXPORT_PRIVATE QuartcStreamInterface {
public:
virtual ~QuartcStreamInterface() {}
@@ -28,6 +28,10 @@ class QuartcStreamInterface {
// determine if all the data has been sent
virtual bool fin_sent() = 0;
+ virtual int stream_error() = 0;
+
+ virtual int connection_error() = 0;
+
struct WriteParameters {
WriteParameters() : fin(false) {}
// |fin| is set to be true when there is no more data need to be send
@@ -61,7 +65,7 @@ class QuartcStreamInterface {
// endpoint.
// TODO(zhihuang) Creates a map from the integer error_code to WebRTC native
// error code.
- virtual void OnClose(QuartcStreamInterface* stream, int error_code) = 0;
+ virtual void OnClose(QuartcStreamInterface* stream) = 0;
// Called when buffered_amount() decreases.
virtual void OnBufferedAmountDecrease(QuartcStreamInterface* stream) = 0;
« no previous file with comments | « net/quic/quartc/quartc_stream.cc ('k') | net/quic/quartc/quartc_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698