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

Unified Diff: chromecast/browser/url_request_context_factory.cc

Issue 961993006: [Chromecast] Remove in-memory HttpCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/url_request_context_factory.cc
diff --git a/chromecast/browser/url_request_context_factory.cc b/chromecast/browser/url_request_context_factory.cc
index 892fd003591393798a951340e36784ac67545a4f..a7e712303c6b7661798235c492bf4b0961256f76 100644
--- a/chromecast/browser/url_request_context_factory.cc
+++ b/chromecast/browser/url_request_context_factory.cc
@@ -19,7 +19,6 @@
#include "net/cookies/cookie_store.h"
#include "net/dns/host_resolver.h"
#include "net/http/http_auth_handler_factory.h"
-#include "net/http/http_cache.h"
#include "net/http/http_network_layer.h"
#include "net/http/http_server_properties_impl.h"
#include "net/http/http_stream_factory.h"
@@ -355,9 +354,6 @@ net::URLRequestContext* URLRequestContextFactory::CreateMainRequestContext(
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
InitializeSystemContextDependencies();
- net::HttpCache::BackendFactory* main_backend =
- net::HttpCache::DefaultBackend::InMemory(16 * 1024 * 1024);
-
bool ignore_certificate_errors = false;
base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
if (cmd_line->HasSwitch(switches::kIgnoreCertificateErrors)) {
@@ -367,9 +363,9 @@ net::URLRequestContext* URLRequestContextFactory::CreateMainRequestContext(
PopulateNetworkSessionParams(ignore_certificate_errors,
&network_session_params);
InitializeMainContextDependencies(
- new net::HttpCache(network_session_params, main_backend),
- protocol_handlers,
- request_interceptors.Pass());
+ new net::HttpNetworkLayer(
+ new net::HttpNetworkSession(network_session_params)),
+ protocol_handlers, request_interceptors.Pass());
lcwu1 2015/03/03 19:01:33 nit: I would probably move request_interceptors.Pa
content::CookieStoreConfig cookie_config(
browser_context->GetPath().Append(kCookieStoreFile),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698