diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-03 23:17:55 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-03 23:17:55 +0000 |
commit | 56dfb9046003f3cdcd3a1b161b2551c5fe48af38 (patch) | |
tree | 1f58db16f117d0573e15d8ddc43dcf635a8e6efd /net/quic/quic_reliable_client_stream.h | |
parent | 7cf9288fc7e92c9b23d932161f8c25d9572767c7 (diff) | |
download | chromium_src-56dfb9046003f3cdcd3a1b161b2551c5fe48af38.zip chromium_src-56dfb9046003f3cdcd3a1b161b2551c5fe48af38.tar.gz chromium_src-56dfb9046003f3cdcd3a1b161b2551c5fe48af38.tar.bz2 |
Add a CloseAllSessions method to QuicStreamFactory, and wire it up to HttpNetworkSession::CloseAllConnections().
Review URL: https://chromiumcodereview.appspot.com/11710003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_reliable_client_stream.h')
-rw-r--r-- | net/quic/quic_reliable_client_stream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/quic/quic_reliable_client_stream.h b/net/quic/quic_reliable_client_stream.h index 591d0de..fd5e6cc 100644 --- a/net/quic/quic_reliable_client_stream.h +++ b/net/quic/quic_reliable_client_stream.h @@ -45,6 +45,9 @@ class NET_EXPORT_PRIVATE QuicReliableClientStream : public ReliableQuicStream { // Called when the stream is closed by the peer. virtual void OnClose(QuicErrorCode error) = 0; + // Called when the stream is closed because of an error. + virtual void OnError(int error) = 0; + protected: virtual ~Delegate() {} @@ -67,6 +70,7 @@ class NET_EXPORT_PRIVATE QuicReliableClientStream : public ReliableQuicStream { // called on the delegate. void SetDelegate(Delegate* delegate); Delegate* GetDelegate() { return delegate_; } + void OnError(int error); private: Delegate* delegate_; |