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

Unified Diff: net/tools/quic/quic_server_session.h

Issue 1413613016: Factoring a QuicCryptoServerStreamBase API out of QuicCryptoServerStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106845547
Patch Set: Created 5 years, 1 month 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/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server_session.h
diff --git a/net/tools/quic/quic_server_session.h b/net/tools/quic/quic_server_session.h
index 654d1ce8b7f50414d75725bda4729b6d2f0cc9c3..bce73a72ff353c411f000605225f2b35dd0f67dc 100644
--- a/net/tools/quic/quic_server_session.h
+++ b/net/tools/quic/quic_server_session.h
@@ -70,7 +70,7 @@ class QuicServerSession : public QuicSpdySession {
void Initialize() override;
- const QuicCryptoServerStream* crypto_stream() const {
+ const QuicCryptoServerStreamBase* crypto_stream() const {
return crypto_stream_.get();
}
@@ -81,14 +81,14 @@ class QuicServerSession : public QuicSpdySession {
if (GetCryptoStream() == nullptr) {
return false;
}
- return GetCryptoStream()->use_stateless_rejects_if_peer_supported();
+ return GetCryptoStream()->UseStatelessRejectsIfPeerSupported();
}
bool PeerSupportsStatelessRejects() {
if (GetCryptoStream() == nullptr) {
return false;
}
- return GetCryptoStream()->peer_supports_stateless_rejects();
+ return GetCryptoStream()->PeerSupportsStatelessRejects();
}
void set_serving_region(const std::string& serving_region) {
@@ -99,21 +99,23 @@ class QuicServerSession : public QuicSpdySession {
// QuicSession methods:
QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override;
QuicSpdyStream* CreateOutgoingDynamicStream() override;
- QuicCryptoServerStream* GetCryptoStream() override;
+ QuicCryptoServerStreamBase* GetCryptoStream() override;
// If we should create an incoming stream, returns true. Otherwise
// does error handling, including communicating the error to the client and
// possibly closing the connection, and returns false.
virtual bool ShouldCreateIncomingDynamicStream(QuicStreamId id);
- virtual QuicCryptoServerStream* CreateQuicCryptoServerStream(
+ virtual QuicCryptoServerStreamBase* CreateQuicCryptoServerStream(
const QuicCryptoServerConfig* crypto_config);
+ const QuicCryptoServerConfig* crypto_config() { return crypto_config_; }
+
private:
friend class test::QuicServerSessionPeer;
const QuicCryptoServerConfig* crypto_config_;
- scoped_ptr<QuicCryptoServerStream> crypto_stream_;
+ scoped_ptr<QuicCryptoServerStreamBase> crypto_stream_;
QuicServerSessionVisitor* visitor_;
// Whether bandwidth resumption is enabled for this connection.
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698