Chromium Code Reviews| 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/prefs/pref_change_registrar.h" | 16 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 17 #include "chrome/browser/spellcheck_host_observer.h" | 17 #include "chrome/browser/spellcheck_host_observer.h" |
| 18 #include "chrome/common/notification_observer.h" | 18 #include "chrome/common/notification_observer.h" |
| 19 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
| 20 | 20 |
| 21 class BackgroundModeManager; | 21 class BackgroundModeManager; |
| 22 class ExtensionPrefs; | 22 class ExtensionPrefs; |
| 23 class ExtensionPrefValueMap; | |
| 23 class PrefService; | 24 class PrefService; |
| 24 | 25 |
| 25 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
| 26 namespace chromeos { | 27 namespace chromeos { |
| 27 class Preferences; | 28 class Preferences; |
| 28 } | 29 } |
| 29 #endif | 30 #endif |
| 30 | 31 |
| 31 class NetPrefObserver; | 32 class NetPrefObserver; |
| 32 | 33 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 FilePath base_cache_path_; | 175 FilePath base_cache_path_; |
| 175 // Keep prefs_ on top for destruction order because extension_prefs_, | 176 // Keep prefs_ on top for destruction order because extension_prefs_, |
| 176 // net_pref_observer_, web_resource_service_ and background_contents_service_ | 177 // net_pref_observer_, web_resource_service_ and background_contents_service_ |
| 177 // store pointers to prefs_ and shall be destructed first. | 178 // store pointers to prefs_ and shall be destructed first. |
| 178 scoped_ptr<PrefService> prefs_; | 179 scoped_ptr<PrefService> prefs_; |
| 179 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; | 180 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
| 180 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 181 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
| 181 // Keep extension_prefs_ on top of extensions_service_ because the latter | 182 // Keep extension_prefs_ on top of extensions_service_ because the latter |
| 182 // maintains a pointer to the first and shall be destructed first. | 183 // maintains a pointer to the first and shall be destructed first. |
| 183 scoped_ptr<ExtensionPrefs> extension_prefs_; | 184 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 185 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; | |
|
Mattias Nissler (ping if slow)
2011/01/07 10:12:58
Don't you need to put this before the |prefs_| dec
battre
2011/01/10 16:55:47
Done.
| |
| 184 scoped_refptr<ExtensionService> extensions_service_; | 186 scoped_refptr<ExtensionService> extensions_service_; |
| 185 scoped_refptr<UserScriptMaster> user_script_master_; | 187 scoped_refptr<UserScriptMaster> user_script_master_; |
| 186 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 188 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |
| 187 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 189 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
| 188 scoped_refptr<ExtensionMessageService> extension_message_service_; | 190 scoped_refptr<ExtensionMessageService> extension_message_service_; |
| 189 scoped_ptr<ExtensionEventRouter> extension_event_router_; | 191 scoped_ptr<ExtensionEventRouter> extension_event_router_; |
| 190 scoped_ptr<SSLHostState> ssl_host_state_; | 192 scoped_ptr<SSLHostState> ssl_host_state_; |
| 191 scoped_refptr<net::TransportSecurityState> | 193 scoped_refptr<net::TransportSecurityState> |
| 192 transport_security_state_; | 194 transport_security_state_; |
| 193 scoped_refptr<TransportSecurityPersister> | 195 scoped_refptr<TransportSecurityPersister> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 297 #endif | 299 #endif |
| 298 | 300 |
| 299 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 301 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 300 | 302 |
| 301 scoped_ptr<PrerenderManager> prerender_manager_; | 303 scoped_ptr<PrerenderManager> prerender_manager_; |
| 302 | 304 |
| 303 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 305 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 304 }; | 306 }; |
| 305 | 307 |
| 306 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 308 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |