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_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_IMPL_H_ |
8 #define CHROME_BROWSER_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILE_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 virtual ProfileSyncService* GetProfileSyncService( | 117 virtual ProfileSyncService* GetProfileSyncService( |
118 const std::string& cros_user); | 118 const std::string& cros_user); |
119 virtual TokenService* GetTokenService(); | 119 virtual TokenService* GetTokenService(); |
120 void InitSyncService(const std::string& cros_user); | 120 void InitSyncService(const std::string& cros_user); |
121 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 121 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
122 void InitCloudPrintProxyService(); | 122 void InitCloudPrintProxyService(); |
123 virtual ChromeBlobStorageContext* GetBlobStorageContext(); | 123 virtual ChromeBlobStorageContext* GetBlobStorageContext(); |
124 virtual ExtensionInfoMap* GetExtensionInfoMap(); | 124 virtual ExtensionInfoMap* GetExtensionInfoMap(); |
125 virtual PromoCounter* GetInstantPromoCounter(); | 125 virtual PromoCounter* GetInstantPromoCounter(); |
126 virtual BrowserSignin* GetBrowserSignin(); | 126 virtual BrowserSignin* GetBrowserSignin(); |
| 127 virtual policy::DeviceManagementService* GetDeviceManagementService(); |
127 virtual policy::DeviceManagementPolicyProvider* | 128 virtual policy::DeviceManagementPolicyProvider* |
128 GetDeviceManagementPolicyProvider(); | 129 GetDeviceManagementPolicyProvider(); |
129 | 130 |
130 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
131 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl(); | 132 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl(); |
132 #endif // defined(OS_CHROMEOS) | 133 #endif // defined(OS_CHROMEOS) |
133 | 134 |
134 // NotificationObserver implementation. | 135 // NotificationObserver implementation. |
135 virtual void Observe(NotificationType type, | 136 virtual void Observe(NotificationType type, |
136 const NotificationSource& source, | 137 const NotificationSource& source, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 scoped_refptr<UserScriptMaster> user_script_master_; | 174 scoped_refptr<UserScriptMaster> user_script_master_; |
174 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 175 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |
175 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 176 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
176 scoped_refptr<ExtensionMessageService> extension_message_service_; | 177 scoped_refptr<ExtensionMessageService> extension_message_service_; |
177 scoped_ptr<ExtensionEventRouter> extension_event_router_; | 178 scoped_ptr<ExtensionEventRouter> extension_event_router_; |
178 scoped_ptr<SSLHostState> ssl_host_state_; | 179 scoped_ptr<SSLHostState> ssl_host_state_; |
179 scoped_refptr<net::TransportSecurityState> | 180 scoped_refptr<net::TransportSecurityState> |
180 transport_security_state_; | 181 transport_security_state_; |
181 scoped_refptr<TransportSecurityPersister> | 182 scoped_refptr<TransportSecurityPersister> |
182 transport_security_persister_; | 183 transport_security_persister_; |
| 184 scoped_ptr<policy::DeviceManagementPolicyProvider> |
| 185 device_management_policy_provider_; |
183 scoped_ptr<PrefService> prefs_; | 186 scoped_ptr<PrefService> prefs_; |
184 scoped_ptr<NetPrefObserver> net_pref_observer_; | 187 scoped_ptr<NetPrefObserver> net_pref_observer_; |
185 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; | 188 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |
186 scoped_ptr<TemplateURLModel> template_url_model_; | 189 scoped_ptr<TemplateURLModel> template_url_model_; |
187 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 190 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
188 scoped_refptr<WebResourceService> web_resource_service_; | 191 scoped_refptr<WebResourceService> web_resource_service_; |
189 scoped_ptr<NTPResourceCache> ntp_resource_cache_; | 192 scoped_ptr<NTPResourceCache> ntp_resource_cache_; |
190 | 193 |
191 scoped_ptr<TokenService> token_service_; | 194 scoped_ptr<TokenService> token_service_; |
192 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; | 195 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // The main database tracker for this profile. | 269 // The main database tracker for this profile. |
267 // Should be used only on the file thread. | 270 // Should be used only on the file thread. |
268 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 271 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
269 | 272 |
270 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 273 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
271 | 274 |
272 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 275 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
273 | 276 |
274 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 277 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
275 | 278 |
276 scoped_ptr<policy::DeviceManagementPolicyProvider> | 279 scoped_ptr<policy::DeviceManagementService> device_management_service_; |
277 device_management_policy_provider_; | |
278 | 280 |
279 #if defined(OS_CHROMEOS) | 281 #if defined(OS_CHROMEOS) |
280 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 282 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
281 | 283 |
282 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 284 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
283 chromeos_proxy_config_service_impl_; | 285 chromeos_proxy_config_service_impl_; |
284 #endif | 286 #endif |
285 | 287 |
286 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 288 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
287 }; | 289 }; |
288 | 290 |
289 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ | 291 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ |
OLD | NEW |