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

Side by Side Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 6479007: Attempt 3 at: Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/net/chrome_url_request_context.h" 5 #include "chrome/browser/net/chrome_url_request_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/browser_thread.h" 13 #include "chrome/browser/browser_thread.h"
14 #include "chrome/browser/dom_ui/chrome_url_data_manager_backend.h"
14 #include "chrome/browser/extensions/extension_service.h" 15 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/user_script_master.h" 16 #include "chrome/browser/extensions/user_script_master.h"
16 #include "chrome/browser/io_thread.h" 17 #include "chrome/browser/io_thread.h"
17 #include "chrome/browser/net/chrome_cookie_notification_details.h" 18 #include "chrome/browser/net/chrome_cookie_notification_details.h"
18 #include "chrome/browser/net/chrome_net_log.h" 19 #include "chrome/browser/net/chrome_net_log.h"
19 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h" 20 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h"
20 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" 21 #include "chrome/browser/net/sqlite_persistent_cookie_store.h"
21 #include "chrome/browser/net/predictor_api.h" 22 #include "chrome/browser/net/predictor_api.h"
22 #include "chrome/browser/net/pref_proxy_config_service.h" 23 #include "chrome/browser/net/pref_proxy_config_service.h"
23 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 726
726 // ---------------------------------------------------------------------------- 727 // ----------------------------------------------------------------------------
727 // ChromeURLRequestContext 728 // ChromeURLRequestContext
728 // ---------------------------------------------------------------------------- 729 // ----------------------------------------------------------------------------
729 730
730 ChromeURLRequestContext::ChromeURLRequestContext() 731 ChromeURLRequestContext::ChromeURLRequestContext()
731 : is_off_the_record_(false) { 732 : is_off_the_record_(false) {
732 CheckCurrentlyOnIOThread(); 733 CheckCurrentlyOnIOThread();
733 } 734 }
734 735
736 ChromeURLDataManagerBackend*
737 ChromeURLRequestContext::GetChromeURLDataManagerBackend() {
738 if (!chrome_url_data_manager_backend_.get())
739 chrome_url_data_manager_backend_.reset(new ChromeURLDataManagerBackend());
740 return chrome_url_data_manager_backend_.get();
741 }
742
735 ChromeURLRequestContext::~ChromeURLRequestContext() { 743 ChromeURLRequestContext::~ChromeURLRequestContext() {
736 CheckCurrentlyOnIOThread(); 744 CheckCurrentlyOnIOThread();
737 745
738 if (appcache_service_.get() && appcache_service_->request_context() == this) 746 if (appcache_service_.get() && appcache_service_->request_context() == this)
739 appcache_service_->set_request_context(NULL); 747 appcache_service_->set_request_context(NULL);
740 748
741 if (proxy_service_ && 749 if (proxy_service_ &&
742 proxy_service_->GetProxyScriptFetcher() && 750 proxy_service_->GetProxyScriptFetcher() &&
743 proxy_service_->GetProxyScriptFetcher()->GetRequestContext() == this) { 751 proxy_service_->GetProxyScriptFetcher()->GetRequestContext() == this) {
744 // Remove the ProxyScriptFetcher's weak reference to this context. 752 // Remove the ProxyScriptFetcher's weak reference to this context.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 transport_security_state_); 872 transport_security_state_);
865 context->set_ssl_config_service(ssl_config_service_); 873 context->set_ssl_config_service(ssl_config_service_);
866 context->set_appcache_service(appcache_service_); 874 context->set_appcache_service(appcache_service_);
867 context->set_database_tracker(database_tracker_); 875 context->set_database_tracker(database_tracker_);
868 context->set_blob_storage_context(blob_storage_context_); 876 context->set_blob_storage_context(blob_storage_context_);
869 context->set_file_system_context(file_system_context_); 877 context->set_file_system_context(file_system_context_);
870 context->set_extension_info_map(extension_info_map_); 878 context->set_extension_info_map(extension_info_map_);
871 context->set_extension_io_event_router(extension_io_event_router_); 879 context->set_extension_io_event_router(extension_io_event_router_);
872 context->set_prerender_manager(prerender_manager_); 880 context->set_prerender_manager(prerender_manager_);
873 } 881 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698