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

Unified Diff: net/tools/quic/quic_simple_server_bin.cc

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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_server.cc ('k') | net/tools/quic/quic_simple_server_packet_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_bin.cc
diff --git a/net/tools/quic/quic_simple_server_bin.cc b/net/tools/quic/quic_simple_server_bin.cc
index e8f0c9205c038fe2f7c876a870c9dec1c59ba398..a652983632c98997e119d76fa42b78e242bfa755 100644
--- a/net/tools/quic/quic_simple_server_bin.cc
+++ b/net/tools/quic/quic_simple_server_bin.cc
@@ -15,8 +15,8 @@
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/quic/chromium/crypto/proof_source_chromium.h"
-#include "net/quic/core/quic_protocol.h"
-#include "net/tools/quic/quic_in_memory_cache.h"
+#include "net/quic/core/quic_packets.h"
+#include "net/tools/quic/quic_http_response_cache.h"
#include "net/tools/quic/quic_simple_server.h"
// The port the quic server will listen on.
@@ -49,7 +49,7 @@ int main(int argc, char* argv[]) {
"Options:\n"
"-h, --help show this help message and exit\n"
"--port=<port> specify the port to listen on\n"
- "--quic_in_memory_cache_dir directory containing response data\n"
+ "--quic_response_cache_dir directory containing response data\n"
" to load\n"
"--certificate_file=<file> path to the certificate chain\n"
"--key_file=<file> path to the pkcs8 private key\n";
@@ -57,10 +57,10 @@ int main(int argc, char* argv[]) {
exit(0);
}
- net::QuicInMemoryCache in_memory_cache;
- if (line->HasSwitch("quic_in_memory_cache_dir")) {
- in_memory_cache.InitializeFromDirectory(
- line->GetSwitchValueASCII("quic_in_memory_cache_dir"));
+ net::QuicHttpResponseCache response_cache;
+ if (line->HasSwitch("quic_response_cache_dir")) {
+ response_cache.InitializeFromDirectory(
+ line->GetSwitchValueASCII("quic_response_cache_dir"));
}
if (line->HasSwitch("port")) {
@@ -87,7 +87,7 @@ int main(int argc, char* argv[]) {
CreateProofSource(line->GetSwitchValuePath("certificate_file"),
line->GetSwitchValuePath("key_file")),
config, net::QuicCryptoServerConfig::ConfigOptions(),
- net::AllSupportedVersions(), &in_memory_cache);
+ net::AllSupportedVersions(), &response_cache);
int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port));
if (rc < 0) {
« no previous file with comments | « net/tools/quic/quic_simple_server.cc ('k') | net/tools/quic/quic_simple_server_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698