| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/prefs/pref_change_registrar.h" | 16 #include "base/prefs/pref_change_registrar.h" |
| 17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/profiles/profile_impl_io_data.h" | 19 #include "chrome/browser/profiles/profile_impl_io_data.h" |
| 20 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
| 21 #include "content/public/browser/host_zoom_map.h" | 21 #include "content/public/browser/host_zoom_map.h" |
| 22 | 22 |
| 23 class NetPrefObserver; | 23 class NetPrefObserver; |
| 24 class PrefService; | 24 class PrefService; |
| 25 class PrefServiceSyncable; | 25 class PrefServiceSyncable; |
| 26 class ShortcutsBackend; |
| 26 class SSLConfigServiceManager; | 27 class SSLConfigServiceManager; |
| 27 | 28 |
| 28 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 29 namespace chromeos { | 30 namespace chromeos { |
| 30 class LocaleChangeGuard; | 31 class LocaleChangeGuard; |
| 31 class Preferences; | 32 class Preferences; |
| 32 } | 33 } |
| 33 #endif | 34 #endif |
| 34 | 35 |
| 35 namespace base { | 36 namespace base { |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // shall be destructed first. | 234 // shall be destructed first. |
| 234 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 235 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
| 235 scoped_ptr<PrefServiceSyncable> prefs_; | 236 scoped_ptr<PrefServiceSyncable> prefs_; |
| 236 scoped_ptr<PrefServiceSyncable> otr_prefs_; | 237 scoped_ptr<PrefServiceSyncable> otr_prefs_; |
| 237 ProfileImplIOData::Handle io_data_; | 238 ProfileImplIOData::Handle io_data_; |
| 238 scoped_refptr<ExtensionSpecialStoragePolicy> | 239 scoped_refptr<ExtensionSpecialStoragePolicy> |
| 239 extension_special_storage_policy_; | 240 extension_special_storage_policy_; |
| 240 scoped_ptr<NetPrefObserver> net_pref_observer_; | 241 scoped_ptr<NetPrefObserver> net_pref_observer_; |
| 241 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 242 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
| 242 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 243 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 243 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 244 scoped_refptr<ShortcutsBackend> shortcuts_backend_; |
| 244 | 245 |
| 245 // Exit type the last time the profile was opened. This is set only once from | 246 // Exit type the last time the profile was opened. This is set only once from |
| 246 // prefs. | 247 // prefs. |
| 247 ExitType last_session_exit_type_; | 248 ExitType last_session_exit_type_; |
| 248 | 249 |
| 249 #if defined(ENABLE_SESSION_SERVICE) | 250 #if defined(ENABLE_SESSION_SERVICE) |
| 250 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 251 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
| 251 #endif | 252 #endif |
| 252 | 253 |
| 253 scoped_ptr<Profile> off_the_record_profile_; | 254 scoped_ptr<Profile> off_the_record_profile_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 282 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} | 283 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} |
| 283 | 284 |
| 284 Profile::Delegate* delegate_; | 285 Profile::Delegate* delegate_; |
| 285 | 286 |
| 286 chrome_browser_net::Predictor* predictor_; | 287 chrome_browser_net::Predictor* predictor_; |
| 287 | 288 |
| 288 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 289 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 292 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |