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

Unified Diff: webkit/tools/test_shell/test_shell_request_context.cc

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 8 years, 3 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 | « net/url_request/url_request_context_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_request_context.cc
diff --git a/webkit/tools/test_shell/test_shell_request_context.cc b/webkit/tools/test_shell/test_shell_request_context.cc
index b5b8dd38e551d96b54eb1a0ec7b55887d73aff89..3427da0b93c73ebd2ea068e41b042f77b91fe30b 100644
--- a/webkit/tools/test_shell/test_shell_request_context.cc
+++ b/webkit/tools/test_shell/test_shell_request_context.cc
@@ -18,6 +18,7 @@
#include "net/cookies/cookie_monster.h"
#include "net/ftp/ftp_network_layer.h"
#include "net/http/http_auth_handler_factory.h"
+#include "net/http/http_network_session.h"
#include "net/http/http_server_properties_impl.h"
#include "net/proxy/proxy_config_service.h"
#include "net/proxy/proxy_config_service_fixed.h"
@@ -95,21 +96,20 @@ void TestShellRequestContext::Init(
cache_path.empty() ? net::MEMORY_CACHE : net::DISK_CACHE,
cache_path, 0, SimpleResourceLoaderBridge::GetCacheThread());
- net::HttpCache* cache =
- new net::HttpCache(host_resolver(),
- cert_verifier(),
- server_bound_cert_service(),
- NULL, /* transport_security_state */
- proxy_service(),
- "", /* ssl_session_cache_shard */
- ssl_config_service(),
- http_auth_handler_factory(),
- NULL, /* network_delegate */
- http_server_properties(),
- NULL, /* netlog */
- backend,
- "" /* trusted_spdy_proxy */ );
-
+ net::HttpNetworkSession::Params network_session_params;
+ network_session_params.host_resolver = host_resolver();
+ network_session_params.cert_verifier = cert_verifier();
+ network_session_params.server_bound_cert_service =
+ server_bound_cert_service();
+ network_session_params.proxy_service = proxy_service();
+ network_session_params.ssl_config_service = ssl_config_service();
+ network_session_params.http_auth_handler_factory =
+ http_auth_handler_factory();
+ network_session_params.http_server_properties = http_server_properties();
+ network_session_params.host_resolver = host_resolver();
+
+ net::HttpCache* cache = new net::HttpCache(
+ network_session_params, backend);
cache->set_mode(cache_mode);
storage_.set_http_transaction_factory(cache);
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698