| 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 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // context. This helper method is called from CreateOriginalForMedia and | 303 // context. This helper method is called from CreateOriginalForMedia and |
| 304 // CreateOffTheRecordForMedia. | 304 // CreateOffTheRecordForMedia. |
| 305 static ChromeURLRequestContextGetter* CreateRequestContextForMedia( | 305 static ChromeURLRequestContextGetter* CreateRequestContextForMedia( |
| 306 Profile* profile, const FilePath& disk_cache_path, int cache_size, | 306 Profile* profile, const FilePath& disk_cache_path, int cache_size, |
| 307 bool off_the_record); | 307 bool off_the_record); |
| 308 | 308 |
| 309 // These methods simply forward to the corresponding method on | 309 // These methods simply forward to the corresponding method on |
| 310 // ChromeURLRequestContext. | 310 // ChromeURLRequestContext. |
| 311 void OnAcceptLanguageChange(const std::string& accept_language); | 311 void OnAcceptLanguageChange(const std::string& accept_language); |
| 312 void OnDefaultCharsetChange(const std::string& default_charset); | 312 void OnDefaultCharsetChange(const std::string& default_charset); |
| 313 void OnClearSiteDataOnExitChange(bool clear_site_data); |
| 313 | 314 |
| 314 // Saves the cookie store to |result| and signals |completion|. | 315 // Saves the cookie store to |result| and signals |completion|. |
| 315 void GetCookieStoreAsyncHelper(base::WaitableEvent* completion, | 316 void GetCookieStoreAsyncHelper(base::WaitableEvent* completion, |
| 316 net::CookieStore** result); | 317 net::CookieStore** result); |
| 317 | 318 |
| 318 PrefChangeRegistrar registrar_; | 319 PrefChangeRegistrar registrar_; |
| 319 | 320 |
| 320 // |io_thread_| is always valid during the lifetime of |this| since |this| is | 321 // |io_thread_| is always valid during the lifetime of |this| since |this| is |
| 321 // deleted on the IO thread. | 322 // deleted on the IO thread. |
| 322 IOThread* const io_thread_; | 323 IOThread* const io_thread_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 356 |
| 356 // Assigns this factory's properties to |context|. | 357 // Assigns this factory's properties to |context|. |
| 357 void ApplyProfileParametersToContext(ChromeURLRequestContext* context); | 358 void ApplyProfileParametersToContext(ChromeURLRequestContext* context); |
| 358 | 359 |
| 359 // Values extracted from the Profile. | 360 // Values extracted from the Profile. |
| 360 // | 361 // |
| 361 // NOTE: If you add any parameters here, keep it in sync with | 362 // NOTE: If you add any parameters here, keep it in sync with |
| 362 // ApplyProfileParametersToContext(). | 363 // ApplyProfileParametersToContext(). |
| 363 bool is_media_; | 364 bool is_media_; |
| 364 bool is_off_the_record_; | 365 bool is_off_the_record_; |
| 366 bool clear_local_state_on_exit_; |
| 365 std::string accept_language_; | 367 std::string accept_language_; |
| 366 std::string accept_charset_; | 368 std::string accept_charset_; |
| 367 std::string referrer_charset_; | 369 std::string referrer_charset_; |
| 368 | 370 |
| 369 // TODO(aa): I think this can go away now as we no longer support standalone | 371 // TODO(aa): I think this can go away now as we no longer support standalone |
| 370 // user scripts. | 372 // user scripts. |
| 371 FilePath user_script_dir_path_; | 373 FilePath user_script_dir_path_; |
| 372 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 374 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 373 scoped_refptr<ChromeAppCacheService> appcache_service_; | 375 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 374 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 376 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 375 scoped_refptr<HostZoomMap> host_zoom_map_; | 377 scoped_refptr<HostZoomMap> host_zoom_map_; |
| 376 scoped_refptr<net::TransportSecurityState> transport_security_state_; | 378 scoped_refptr<net::TransportSecurityState> transport_security_state_; |
| 377 scoped_refptr<net::SSLConfigService> ssl_config_service_; | 379 scoped_refptr<net::SSLConfigService> ssl_config_service_; |
| 378 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate_; | 380 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate_; |
| 379 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 381 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 380 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_; | 382 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_; |
| 381 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 383 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
| 382 | 384 |
| 383 FilePath profile_dir_path_; | 385 FilePath profile_dir_path_; |
| 384 | 386 |
| 385 private: | 387 private: |
| 386 IOThread* const io_thread_; | 388 IOThread* const io_thread_; |
| 387 | 389 |
| 388 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); | 390 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); |
| 389 }; | 391 }; |
| 390 | 392 |
| 391 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ | 393 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |