| 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 "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 20 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 21 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
| 22 #include "content/public/browser/host_zoom_map.h" | 22 #include "content/public/browser/host_zoom_map.h" |
| 23 | 23 |
| 24 class NetPrefObserver; | 24 class NetPrefObserver; |
| 25 class PrefService; | 25 class PrefService; |
| 26 class PrefServiceSyncable; | 26 class PrefServiceSyncable; |
| 27 class ShortcutsBackend; | 27 class ShortcutsBackend; |
| 28 class SSLConfigServiceManager; | |
| 29 class TrackedPreferenceValidationDelegate; | 28 class TrackedPreferenceValidationDelegate; |
| 30 | 29 |
| 31 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
| 32 namespace chromeos { | 31 namespace chromeos { |
| 33 class KioskTest; | 32 class KioskTest; |
| 34 class LocaleChangeGuard; | 33 class LocaleChangeGuard; |
| 35 class Preferences; | 34 class Preferences; |
| 36 class SupervisedUserTestBase; | 35 class SupervisedUserTestBase; |
| 37 } | 36 } |
| 38 #endif | 37 #endif |
| 39 | 38 |
| 40 namespace base { | 39 namespace base { |
| 41 class SequencedTaskRunner; | 40 class SequencedTaskRunner; |
| 42 } | 41 } |
| 43 | 42 |
| 44 namespace domain_reliability { | 43 namespace domain_reliability { |
| 45 class DomainReliabilityMonitor; | 44 class DomainReliabilityMonitor; |
| 46 } | 45 } |
| 47 | 46 |
| 48 namespace extensions { | 47 namespace extensions { |
| 49 class ExtensionSystem; | 48 class ExtensionSystem; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace policy { | 51 namespace policy { |
| 53 class CloudPolicyManager; | 52 class CloudPolicyManager; |
| 54 class ProfilePolicyConnector; | 53 class ProfilePolicyConnector; |
| 55 class SchemaRegistryService; | 54 class SchemaRegistryService; |
| 56 } | 55 } |
| 57 | 56 |
| 57 namespace ssl_config { |
| 58 class SSLConfigServiceManager; |
| 59 } |
| 60 |
| 58 namespace user_prefs { | 61 namespace user_prefs { |
| 59 class refRegistrySyncable; | 62 class refRegistrySyncable; |
| 60 } | 63 } |
| 61 | 64 |
| 62 // The default profile implementation. | 65 // The default profile implementation. |
| 63 class ProfileImpl : public Profile { | 66 class ProfileImpl : public Profile { |
| 64 public: | 67 public: |
| 65 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. | 68 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. |
| 66 static const char* const kPrefExitTypeNormal; | 69 static const char* const kPrefExitTypeNormal; |
| 67 | 70 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // shall be destructed first. | 228 // shall be destructed first. |
| 226 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 229 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
| 227 scoped_ptr<PrefServiceSyncable> prefs_; | 230 scoped_ptr<PrefServiceSyncable> prefs_; |
| 228 scoped_ptr<PrefServiceSyncable> otr_prefs_; | 231 scoped_ptr<PrefServiceSyncable> otr_prefs_; |
| 229 ProfileImplIOData::Handle io_data_; | 232 ProfileImplIOData::Handle io_data_; |
| 230 #if defined(ENABLE_EXTENSIONS) | 233 #if defined(ENABLE_EXTENSIONS) |
| 231 scoped_refptr<ExtensionSpecialStoragePolicy> | 234 scoped_refptr<ExtensionSpecialStoragePolicy> |
| 232 extension_special_storage_policy_; | 235 extension_special_storage_policy_; |
| 233 #endif | 236 #endif |
| 234 scoped_ptr<NetPrefObserver> net_pref_observer_; | 237 scoped_ptr<NetPrefObserver> net_pref_observer_; |
| 235 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 238 scoped_ptr<ssl_config::SSLConfigServiceManager> ssl_config_service_manager_; |
| 236 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 239 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 237 scoped_refptr<ShortcutsBackend> shortcuts_backend_; | 240 scoped_refptr<ShortcutsBackend> shortcuts_backend_; |
| 238 | 241 |
| 239 // Exit type the last time the profile was opened. This is set only once from | 242 // Exit type the last time the profile was opened. This is set only once from |
| 240 // prefs. | 243 // prefs. |
| 241 ExitType last_session_exit_type_; | 244 ExitType last_session_exit_type_; |
| 242 | 245 |
| 243 #if defined(ENABLE_SESSION_SERVICE) | 246 #if defined(ENABLE_SESSION_SERVICE) |
| 244 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 247 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
| 245 #endif | 248 #endif |
| (...skipping 26 matching lines...) Expand all Loading... |
| 272 // components/keyed_service/content/browser_context_keyed_service_factory.* | 275 // components/keyed_service/content/browser_context_keyed_service_factory.* |
| 273 | 276 |
| 274 Profile::Delegate* delegate_; | 277 Profile::Delegate* delegate_; |
| 275 | 278 |
| 276 chrome_browser_net::Predictor* predictor_; | 279 chrome_browser_net::Predictor* predictor_; |
| 277 | 280 |
| 278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 281 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 279 }; | 282 }; |
| 280 | 283 |
| 281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 284 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |