OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void InstallDefaultApps(); | 177 void InstallDefaultApps(); |
178 | 178 |
179 ExtensionPrefValueMap* GetExtensionPrefValueMap(); | 179 ExtensionPrefValueMap* GetExtensionPrefValueMap(); |
180 | 180 |
181 NotificationRegistrar registrar_; | 181 NotificationRegistrar registrar_; |
182 PrefChangeRegistrar pref_change_registrar_; | 182 PrefChangeRegistrar pref_change_registrar_; |
183 | 183 |
184 FilePath path_; | 184 FilePath path_; |
185 FilePath base_cache_path_; | 185 FilePath base_cache_path_; |
186 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; | 186 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; |
187 // Keep prefs_ on top for destruction order because extension_prefs_, | 187 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
188 // net_pref_observer_, web_resource_service_ and background_contents_service_ | 188 // |net_pref_observer_|, |web_resource_service_|, |
189 // store pointers to prefs_ and shall be destructed first. | 189 // |background_contents_service_| and |io_data_| store pointers to |prefs_| |
| 190 // and shall be destructed first. |
190 scoped_ptr<PrefService> prefs_; | 191 scoped_ptr<PrefService> prefs_; |
191 scoped_ptr<PrefService> otr_prefs_; | 192 scoped_ptr<PrefService> otr_prefs_; |
192 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; | 193 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
193 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 194 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
194 // Keep extension_prefs_ on top of extensions_service_ because the latter | 195 // Keep extension_prefs_ on top of extensions_service_ because the latter |
195 // maintains a pointer to the first and shall be destructed first. | 196 // maintains a pointer to the first and shall be destructed first. |
196 scoped_ptr<ExtensionPrefs> extension_prefs_; | 197 scoped_ptr<ExtensionPrefs> extension_prefs_; |
197 scoped_refptr<ExtensionService> extensions_service_; | 198 scoped_refptr<ExtensionService> extensions_service_; |
198 scoped_refptr<UserScriptMaster> user_script_master_; | 199 scoped_refptr<UserScriptMaster> user_script_master_; |
199 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 200 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 #endif | 308 #endif |
308 | 309 |
309 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 310 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
310 | 311 |
311 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 312 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
312 | 313 |
313 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 314 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
314 }; | 315 }; |
315 | 316 |
316 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 317 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |