| 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/timer.h" | 17 #include "base/timer.h" |
| 18 #include "chrome/browser/prefs/pref_change_registrar.h" | 18 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/profiles/profile_impl_io_data.h" | 20 #include "chrome/browser/profiles/profile_impl_io_data.h" |
| 21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
| 22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
| 23 | 23 |
| 24 class ExtensionNavigationObserver; | 24 class ExtensionNavigationObserver; |
| 25 class ExtensionSystem; | 25 class ExtensionSystem; |
| 26 class NetPrefObserver; | 26 class NetPrefObserver; |
| 27 class PrefService; | 27 class PrefService; |
| 28 class PromoResourceService; | |
| 29 class SSLConfigServiceManager; | 28 class SSLConfigServiceManager; |
| 30 class VisitedLinkEventListener; | 29 class VisitedLinkEventListener; |
| 31 | 30 |
| 31 #if !defined(ENABLE_PROMO_RESOURCE_SERVICE) |
| 32 class PromoResourceService; |
| 33 #endif |
| 34 |
| 32 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 33 namespace chromeos { | 36 namespace chromeos { |
| 34 class EnterpriseExtensionObserver; | 37 class EnterpriseExtensionObserver; |
| 35 class LocaleChangeGuard; | 38 class LocaleChangeGuard; |
| 36 class Preferences; | 39 class Preferences; |
| 37 } | 40 } |
| 38 #endif | 41 #endif |
| 39 | 42 |
| 40 namespace content { | 43 namespace content { |
| 41 class SpeechRecognitionPreferences; | 44 class SpeechRecognitionPreferences; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // pointers to |prefs_| and shall be destructed first. | 193 // pointers to |prefs_| and shall be destructed first. |
| 191 scoped_ptr<PrefService> prefs_; | 194 scoped_ptr<PrefService> prefs_; |
| 192 scoped_ptr<PrefService> otr_prefs_; | 195 scoped_ptr<PrefService> otr_prefs_; |
| 193 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; | 196 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
| 194 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 197 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
| 195 ProfileImplIOData::Handle io_data_; | 198 ProfileImplIOData::Handle io_data_; |
| 196 scoped_refptr<ExtensionSpecialStoragePolicy> | 199 scoped_refptr<ExtensionSpecialStoragePolicy> |
| 197 extension_special_storage_policy_; | 200 extension_special_storage_policy_; |
| 198 scoped_ptr<NetPrefObserver> net_pref_observer_; | 201 scoped_ptr<NetPrefObserver> net_pref_observer_; |
| 199 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 202 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
| 203 |
| 204 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) |
| 200 scoped_refptr<PromoResourceService> promo_resource_service_; | 205 scoped_refptr<PromoResourceService> promo_resource_service_; |
| 206 #endif |
| 207 |
| 201 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 208 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; |
| 202 | 209 |
| 203 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 210 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
| 204 | 211 |
| 205 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 212 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 206 scoped_refptr<content::GeolocationPermissionContext> | 213 scoped_refptr<content::GeolocationPermissionContext> |
| 207 geolocation_permission_context_; | 214 geolocation_permission_context_; |
| 208 scoped_refptr<content::SpeechRecognitionPreferences> | 215 scoped_refptr<content::SpeechRecognitionPreferences> |
| 209 speech_recognition_preferences_; | 216 speech_recognition_preferences_; |
| 210 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 217 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 Profile::Delegate* delegate_; | 269 Profile::Delegate* delegate_; |
| 263 | 270 |
| 264 chrome_browser_net::Predictor* predictor_; | 271 chrome_browser_net::Predictor* predictor_; |
| 265 | 272 |
| 266 bool session_restore_enabled_; | 273 bool session_restore_enabled_; |
| 267 | 274 |
| 268 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 269 }; | 276 }; |
| 270 | 277 |
| 271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |