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

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

Issue 2518063007: Pass QuicInMemoryCache directly instead of using a singleton. (Closed)
Patch Set: Fix Cronet compile error Created 4 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_simple_dispatcher.cc ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server.h
diff --git a/net/tools/quic/quic_simple_server.h b/net/tools/quic/quic_simple_server.h
index 2a79e91bfd9cb345858a7fb925bcdfbba72bddcf..9edb3017560b3bda6ef7bf00b40d2ece61a6e93f 100644
--- a/net/tools/quic/quic_simple_server.h
+++ b/net/tools/quic/quic_simple_server.h
@@ -19,6 +19,7 @@
#include "net/quic/core/crypto/quic_crypto_server_config.h"
#include "net/quic/core/quic_clock.h"
#include "net/quic/core/quic_config.h"
+#include "net/tools/quic/quic_in_memory_cache.h"
namespace net {
@@ -37,7 +38,8 @@ class QuicSimpleServer {
std::unique_ptr<ProofSource> proof_source,
const QuicConfig& config,
const QuicCryptoServerConfig::ConfigOptions& crypto_config_options,
- const QuicVersionVector& supported_versions);
+ const QuicVersionVector& supported_versions,
+ QuicInMemoryCache* in_memory_cache);
virtual ~QuicSimpleServer();
@@ -111,6 +113,8 @@ class QuicSimpleServer {
// The log to use for the socket.
NetLog net_log_;
+ QuicInMemoryCache* in_memory_cache_;
+
base::WeakPtrFactory<QuicSimpleServer> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer);
« no previous file with comments | « net/tools/quic/quic_simple_dispatcher.cc ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698