| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "chrome/common/net/cookie_monster_sqlite.h" | 6 #include "chrome/common/net/cookie_monster_sqlite.h" |
| 7 #include "chrome/common/notification_registrar.h" | 7 #include "chrome/common/notification_registrar.h" |
| 8 #include "chrome/common/pref_service.h" | 8 #include "chrome/common/pref_service.h" |
| 9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void Observe(NotificationType type, | 84 virtual void Observe(NotificationType type, |
| 85 const NotificationSource& source, | 85 const NotificationSource& source, |
| 86 const NotificationDetails& details); | 86 const NotificationDetails& details); |
| 87 | 87 |
| 88 // Callback for when the accept language changes. | 88 // Callback for when the accept language changes. |
| 89 void OnAcceptLanguageChange(const std::string& accept_language); | 89 void OnAcceptLanguageChange(const std::string& accept_language); |
| 90 | 90 |
| 91 // Callback for when the cookie policy changes. | 91 // Callback for when the cookie policy changes. |
| 92 void OnCookiePolicyChange(net::CookiePolicy::Type type); | 92 void OnCookiePolicyChange(net::CookiePolicy::Type type); |
| 93 | 93 |
| 94 // Callback for when the default charset changes. |
| 95 void OnDefaultCharsetChange(const std::string& default_charset); |
| 96 |
| 94 // Callback for when new extensions are loaded. | 97 // Callback for when new extensions are loaded. |
| 95 void OnNewExtensions(ExtensionPaths* new_paths); | 98 void OnNewExtensions(ExtensionPaths* new_paths); |
| 96 | 99 |
| 97 // Callback for when an extension is unloaded. | 100 // Callback for when an extension is unloaded. |
| 98 void OnUnloadedExtension(const std::string& id); | 101 void OnUnloadedExtension(const std::string& id); |
| 99 | 102 |
| 100 // Destructor. | 103 // Destructor. |
| 101 virtual ~ChromeURLRequestContext(); | 104 virtual ~ChromeURLRequestContext(); |
| 102 | 105 |
| 103 NotificationRegistrar registrar_; | 106 NotificationRegistrar registrar_; |
| 104 | 107 |
| 105 // Maps extension IDs to paths on disk. This is initialized in the | 108 // Maps extension IDs to paths on disk. This is initialized in the |
| 106 // construtor and updated when extensions changed. | 109 // construtor and updated when extensions changed. |
| 107 ExtensionPaths extension_paths_; | 110 ExtensionPaths extension_paths_; |
| 108 | 111 |
| 109 // Path to the directory user scripts are stored in. | 112 // Path to the directory user scripts are stored in. |
| 110 FilePath user_script_dir_path_; | 113 FilePath user_script_dir_path_; |
| 111 | 114 |
| 112 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; | 115 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; |
| 113 PrefService* prefs_; | 116 PrefService* prefs_; |
| 114 bool is_media_; | 117 bool is_media_; |
| 115 bool is_off_the_record_; | 118 bool is_off_the_record_; |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 // Creates a proxy configuration using the overrides specified on the command | 121 // Creates a proxy configuration using the overrides specified on the command |
| 119 // line. Returns NULL if the system defaults should be used instead. | 122 // line. Returns NULL if the system defaults should be used instead. |
| 120 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); | 123 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); |
| OLD | NEW |