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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 main_context->set_http_auth_handler_factory( 303 main_context->set_http_auth_handler_factory(
304 io_thread_globals->http_auth_handler_factory.get()); 304 io_thread_globals->http_auth_handler_factory.get());
305 media_request_context_->set_http_auth_handler_factory( 305 media_request_context_->set_http_auth_handler_factory(
306 io_thread_globals->http_auth_handler_factory.get()); 306 io_thread_globals->http_auth_handler_factory.get());
307 307
308 main_context->set_fraudulent_certificate_reporter( 308 main_context->set_fraudulent_certificate_reporter(
309 fraudulent_certificate_reporter()); 309 fraudulent_certificate_reporter());
310 media_request_context_->set_fraudulent_certificate_reporter( 310 media_request_context_->set_fraudulent_certificate_reporter(
311 fraudulent_certificate_reporter()); 311 fraudulent_certificate_reporter());
312 312
313 main_context->set_throttler_manager(
314 io_thread_globals->throttler_manager.get());
315 media_request_context_->set_throttler_manager(
316 io_thread_globals->throttler_manager.get());
317 extensions_context->set_throttler_manager(
318 io_thread_globals->throttler_manager.get());
319
313 main_context->set_proxy_service(proxy_service()); 320 main_context->set_proxy_service(proxy_service());
314 media_request_context_->set_proxy_service(proxy_service()); 321 media_request_context_->set_proxy_service(proxy_service());
315 322
316 scoped_refptr<net::CookieStore> cookie_store = NULL; 323 scoped_refptr<net::CookieStore> cookie_store = NULL;
317 net::ServerBoundCertService* server_bound_cert_service = NULL; 324 net::ServerBoundCertService* server_bound_cert_service = NULL;
318 if (record_mode || playback_mode) { 325 if (record_mode || playback_mode) {
319 // Don't use existing cookies and use an in-memory store. 326 // Don't use existing cookies and use an in-memory store.
320 cookie_store = new net::CookieMonster( 327 cookie_store = new net::CookieMonster(
321 NULL, profile_params->cookie_monster_delegate); 328 NULL, profile_params->cookie_monster_delegate);
322 // Don't use existing server-bound certs and use an in-memory store. 329 // Don't use existing server-bound certs and use an in-memory store.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread( 524 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread(
518 base::Time time) { 525 base::Time time) {
519 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 526 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
520 LazyInitialize(); 527 LazyInitialize();
521 528
522 DCHECK(transport_security_state()); 529 DCHECK(transport_security_state());
523 transport_security_state()->DeleteSince(time); 530 transport_security_state()->DeleteSince(time);
524 DCHECK(http_server_properties_manager()); 531 DCHECK(http_server_properties_manager());
525 http_server_properties_manager()->Clear(); 532 http_server_properties_manager()->Clear();
526 } 533 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698