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

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

Issue 2913413002: Groundwork for cancelling quartc streams after a deadline is exceeded. (Closed)
Patch Set: 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 | « no previous file | net/quic/quartc/quartc_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quartc/quartc_session.h
diff --git a/net/quic/quartc/quartc_session.h b/net/quic/quartc/quartc_session.h
index 33dec27d124594b4e594f0a68000301ab92e819d..bda2e89e610ca31237cf4391c79be911e30a012a 100644
--- a/net/quic/quartc/quartc_session.h
+++ b/net/quic/quartc/quartc_session.h
@@ -8,6 +8,7 @@
#include "net/quic/core/quic_crypto_client_stream.h"
#include "net/quic/core/quic_crypto_server_stream.h"
#include "net/quic/core/quic_crypto_stream.h"
+#include "net/quic/core/quic_error_codes.h"
#include "net/quic/core/quic_session.h"
#include "net/quic/quartc/quartc_clock_interface.h"
#include "net/quic/quartc/quartc_session_interface.h"
@@ -67,6 +68,8 @@ class QuartcSession : public QuicSession,
QuartcStreamInterface* CreateOutgoingStream(
const OutgoingStreamParameters& param) override;
+ void CancelStream(QuicStreamId stream_id) override;
+
void SetDelegate(QuartcSessionInterface::Delegate* session_delegate) override;
void OnTransportCanWrite() override;
@@ -100,6 +103,8 @@ class QuartcSession : public QuicSession,
// returns an unowned pointer to the stream for convenience.
QuartcStream* ActivateDataStream(std::unique_ptr<QuartcStream> stream);
+ void ResetStream(QuicStreamId stream_id, QuicRstStreamErrorCode error);
+
private:
// For crypto handshake.
std::unique_ptr<QuicCryptoStream> crypto_stream_;
« no previous file with comments | « no previous file | net/quic/quartc/quartc_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698