| 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 appcache_service_ = other->appcache_service_; | 850 appcache_service_ = other->appcache_service_; |
| 851 database_tracker_ = other->database_tracker_; | 851 database_tracker_ = other->database_tracker_; |
| 852 chrome_cookie_policy_ = other->chrome_cookie_policy_; | 852 chrome_cookie_policy_ = other->chrome_cookie_policy_; |
| 853 host_content_settings_map_ = other->host_content_settings_map_; | 853 host_content_settings_map_ = other->host_content_settings_map_; |
| 854 host_zoom_map_ = other->host_zoom_map_; | 854 host_zoom_map_ = other->host_zoom_map_; |
| 855 is_media_ = other->is_media_; | 855 is_media_ = other->is_media_; |
| 856 is_off_the_record_ = other->is_off_the_record_; | 856 is_off_the_record_ = other->is_off_the_record_; |
| 857 blob_storage_context_ = other->blob_storage_context_; | 857 blob_storage_context_ = other->blob_storage_context_; |
| 858 file_system_context_ = other->file_system_context_; | 858 file_system_context_ = other->file_system_context_; |
| 859 extension_info_map_ = other->extension_info_map_; | 859 extension_info_map_ = other->extension_info_map_; |
| 860 prerender_manager_ = other->prerender_manager_; |
| 860 } | 861 } |
| 861 | 862 |
| 862 void ChromeURLRequestContext::OnAcceptLanguageChange( | 863 void ChromeURLRequestContext::OnAcceptLanguageChange( |
| 863 const std::string& accept_language) { | 864 const std::string& accept_language) { |
| 864 CheckCurrentlyOnIOThread(); | 865 CheckCurrentlyOnIOThread(); |
| 865 accept_language_ = | 866 accept_language_ = |
| 866 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language); | 867 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language); |
| 867 } | 868 } |
| 868 | 869 |
| 869 void ChromeURLRequestContext::OnDefaultCharsetChange( | 870 void ChromeURLRequestContext::OnDefaultCharsetChange( |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 user_script_dir_path_ = profile->GetUserScriptMaster()->user_script_dir(); | 920 user_script_dir_path_ = profile->GetUserScriptMaster()->user_script_dir(); |
| 920 | 921 |
| 921 ssl_config_service_ = profile->GetSSLConfigService(); | 922 ssl_config_service_ = profile->GetSSLConfigService(); |
| 922 profile_dir_path_ = profile->GetPath(); | 923 profile_dir_path_ = profile->GetPath(); |
| 923 cookie_monster_delegate_ = new ChromeCookieMonsterDelegate(profile); | 924 cookie_monster_delegate_ = new ChromeCookieMonsterDelegate(profile); |
| 924 appcache_service_ = profile->GetAppCacheService(); | 925 appcache_service_ = profile->GetAppCacheService(); |
| 925 database_tracker_ = profile->GetDatabaseTracker(); | 926 database_tracker_ = profile->GetDatabaseTracker(); |
| 926 blob_storage_context_ = profile->GetBlobStorageContext(); | 927 blob_storage_context_ = profile->GetBlobStorageContext(); |
| 927 file_system_context_ = profile->GetFileSystemContext(); | 928 file_system_context_ = profile->GetFileSystemContext(); |
| 928 extension_info_map_ = profile->GetExtensionInfoMap(); | 929 extension_info_map_ = profile->GetExtensionInfoMap(); |
| 930 prerender_manager_ = profile->GetPrerenderManager(); |
| 929 } | 931 } |
| 930 | 932 |
| 931 ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() { | 933 ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() { |
| 932 CheckCurrentlyOnIOThread(); | 934 CheckCurrentlyOnIOThread(); |
| 933 } | 935 } |
| 934 | 936 |
| 935 void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( | 937 void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( |
| 936 ChromeURLRequestContext* context) { | 938 ChromeURLRequestContext* context) { |
| 937 // Apply all the parameters. NOTE: keep this in sync with | 939 // Apply all the parameters. NOTE: keep this in sync with |
| 938 // ChromeURLRequestContextFactory(Profile*). | 940 // ChromeURLRequestContextFactory(Profile*). |
| 939 context->set_is_media(is_media_); | 941 context->set_is_media(is_media_); |
| 940 context->set_is_off_the_record(is_off_the_record_); | 942 context->set_is_off_the_record(is_off_the_record_); |
| 941 context->set_accept_language(accept_language_); | 943 context->set_accept_language(accept_language_); |
| 942 context->set_accept_charset(accept_charset_); | 944 context->set_accept_charset(accept_charset_); |
| 943 context->set_referrer_charset(referrer_charset_); | 945 context->set_referrer_charset(referrer_charset_); |
| 944 context->set_user_script_dir_path(user_script_dir_path_); | 946 context->set_user_script_dir_path(user_script_dir_path_); |
| 945 context->set_host_content_settings_map(host_content_settings_map_); | 947 context->set_host_content_settings_map(host_content_settings_map_); |
| 946 context->set_host_zoom_map(host_zoom_map_); | 948 context->set_host_zoom_map(host_zoom_map_); |
| 947 context->set_transport_security_state( | 949 context->set_transport_security_state( |
| 948 transport_security_state_); | 950 transport_security_state_); |
| 949 context->set_ssl_config_service(ssl_config_service_); | 951 context->set_ssl_config_service(ssl_config_service_); |
| 950 context->set_appcache_service(appcache_service_); | 952 context->set_appcache_service(appcache_service_); |
| 951 context->set_database_tracker(database_tracker_); | 953 context->set_database_tracker(database_tracker_); |
| 952 context->set_blob_storage_context(blob_storage_context_); | 954 context->set_blob_storage_context(blob_storage_context_); |
| 953 context->set_file_system_context(file_system_context_); | 955 context->set_file_system_context(file_system_context_); |
| 954 context->set_extension_info_map(extension_info_map_); | 956 context->set_extension_info_map(extension_info_map_); |
| 957 context->set_prerender_manager(prerender_manager_); |
| 955 } | 958 } |
| OLD | NEW |