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

Unified Diff: net/tools/quic/test_tools/quic_test_server.h

Issue 1437023002: Landing Recent QUIC changes until 2015-11-09 20:32 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/test_tools/quic_test_client.cc ('k') | net/tools/quic/test_tools/quic_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_server.h
diff --git a/net/tools/quic/test_tools/quic_test_server.h b/net/tools/quic/test_tools/quic_test_server.h
index 6a027632762cbd1a51cd7468b67a9832088c9627..da97ccdb98f29dfcfda5ca427fc3aa7bb672e77d 100644
--- a/net/tools/quic/test_tools/quic_test_server.h
+++ b/net/tools/quic/test_tools/quic_test_server.h
@@ -49,6 +49,16 @@ class QuicTestServer : public QuicServer {
QuicSpdySession* session) = 0;
};
+ class CryptoStreamFactory {
+ public:
+ virtual ~CryptoStreamFactory() {}
+
+ // Returns a new QuicCryptoServerStreamBase owned by the caller
+ virtual QuicCryptoServerStreamBase* CreateCryptoStream(
+ const QuicCryptoServerConfig* crypto_config,
+ QuicSpdySession* session) = 0;
+ };
+
explicit QuicTestServer(ProofSource* proof_source);
QuicTestServer(ProofSource* proof_source,
const QuicConfig& config,
@@ -58,12 +68,17 @@ class QuicTestServer : public QuicServer {
QuicDispatcher* CreateQuicDispatcher() override;
// Sets a custom session factory, owned by the caller, for easy custom
- // session logic. This is incompatible with setting a stream factory.
+ // session logic. This is incompatible with setting a stream factory or a
+ // crypto stream factory.
void SetSessionFactory(SessionFactory* factory);
// Sets a custom stream factory, owned by the caller, for easy custom
// stream logic. This is incompatible with setting a session factory.
void SetSpdyStreamFactory(StreamFactory* factory);
+
+ // Sets a custom crypto stream factory, owned by the caller, for easy custom
+ // crypto logic. This is incompatible with setting a session factory.
+ void SetCryptoStreamFactory(CryptoStreamFactory* factory);
};
// Useful test sessions for the QuicTestServer.
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.cc ('k') | net/tools/quic/test_tools/quic_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698