OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 user_script_dir_path_ = profile->GetUserScriptMaster()->user_script_dir(); | 878 user_script_dir_path_ = profile->GetUserScriptMaster()->user_script_dir(); |
879 | 879 |
880 ssl_config_service_ = profile->GetSSLConfigService(); | 880 ssl_config_service_ = profile->GetSSLConfigService(); |
881 profile_dir_path_ = profile->GetPath(); | 881 profile_dir_path_ = profile->GetPath(); |
882 cookie_monster_delegate_ = new ChromeCookieMonsterDelegate(profile); | 882 cookie_monster_delegate_ = new ChromeCookieMonsterDelegate(profile); |
883 appcache_service_ = profile->GetAppCacheService(); | 883 appcache_service_ = profile->GetAppCacheService(); |
884 database_tracker_ = profile->GetDatabaseTracker(); | 884 database_tracker_ = profile->GetDatabaseTracker(); |
885 blob_storage_context_ = profile->GetBlobStorageContext(); | 885 blob_storage_context_ = profile->GetBlobStorageContext(); |
886 file_system_context_ = profile->GetFileSystemContext(); | 886 file_system_context_ = profile->GetFileSystemContext(); |
887 extension_info_map_ = profile->GetExtensionInfoMap(); | 887 extension_info_map_ = profile->GetExtensionInfoMap(); |
| 888 prerender_manager_ = profile->GetPrerenderManager(); |
888 } | 889 } |
889 | 890 |
890 ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() { | 891 ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() { |
891 CheckCurrentlyOnIOThread(); | 892 CheckCurrentlyOnIOThread(); |
892 } | 893 } |
893 | 894 |
894 void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( | 895 void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( |
895 ChromeURLRequestContext* context) { | 896 ChromeURLRequestContext* context) { |
896 // Apply all the parameters. NOTE: keep this in sync with | 897 // Apply all the parameters. NOTE: keep this in sync with |
897 // ChromeURLRequestContextFactory(Profile*). | 898 // ChromeURLRequestContextFactory(Profile*). |
898 context->set_is_media(is_media_); | 899 context->set_is_media(is_media_); |
899 context->set_is_off_the_record(is_off_the_record_); | 900 context->set_is_off_the_record(is_off_the_record_); |
900 context->set_accept_language(accept_language_); | 901 context->set_accept_language(accept_language_); |
901 context->set_accept_charset(accept_charset_); | 902 context->set_accept_charset(accept_charset_); |
902 context->set_referrer_charset(referrer_charset_); | 903 context->set_referrer_charset(referrer_charset_); |
903 context->set_user_script_dir_path(user_script_dir_path_); | 904 context->set_user_script_dir_path(user_script_dir_path_); |
904 context->set_host_content_settings_map(host_content_settings_map_); | 905 context->set_host_content_settings_map(host_content_settings_map_); |
905 context->set_host_zoom_map(host_zoom_map_); | 906 context->set_host_zoom_map(host_zoom_map_); |
906 context->set_transport_security_state( | 907 context->set_transport_security_state( |
907 transport_security_state_); | 908 transport_security_state_); |
908 context->set_ssl_config_service(ssl_config_service_); | 909 context->set_ssl_config_service(ssl_config_service_); |
909 context->set_appcache_service(appcache_service_); | 910 context->set_appcache_service(appcache_service_); |
910 context->set_database_tracker(database_tracker_); | 911 context->set_database_tracker(database_tracker_); |
911 context->set_blob_storage_context(blob_storage_context_); | 912 context->set_blob_storage_context(blob_storage_context_); |
912 context->set_file_system_context(file_system_context_); | 913 context->set_file_system_context(file_system_context_); |
913 context->set_extension_info_map(extension_info_map_); | 914 context->set_extension_info_map(extension_info_map_); |
| 915 context->set_prerender_manager(prerender_manager_); |
914 } | 916 } |
OLD | NEW |