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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual void set_last_selected_directory(const FilePath& path); | 115 virtual void set_last_selected_directory(const FilePath& path); |
116 virtual ProfileSyncService* GetProfileSyncService(); | 116 virtual ProfileSyncService* GetProfileSyncService(); |
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 BrowserSignin* GetBrowserSignin(); | 126 virtual BrowserSignin* GetBrowserSignin(); |
126 | 127 |
127 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
128 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl(); | 129 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl(); |
129 #endif // defined(OS_CHROMEOS) | 130 #endif // defined(OS_CHROMEOS) |
130 | 131 |
131 // NotificationObserver implementation. | 132 // NotificationObserver implementation. |
132 virtual void Observe(NotificationType type, | 133 virtual void Observe(NotificationType type, |
133 const NotificationSource& source, | 134 const NotificationSource& source, |
134 const NotificationDetails& details); | 135 const NotificationDetails& details); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 base::Time start_time_; | 241 base::Time start_time_; |
241 | 242 |
242 scoped_refptr<TabRestoreService> tab_restore_service_; | 243 scoped_refptr<TabRestoreService> tab_restore_service_; |
243 | 244 |
244 scoped_refptr<SpellCheckHost> spellcheck_host_; | 245 scoped_refptr<SpellCheckHost> spellcheck_host_; |
245 | 246 |
246 // Indicates whether |spellcheck_host_| has told us initialization is | 247 // Indicates whether |spellcheck_host_| has told us initialization is |
247 // finished. | 248 // finished. |
248 bool spellcheck_host_ready_; | 249 bool spellcheck_host_ready_; |
249 | 250 |
| 251 #if defined(OS_WIN) |
| 252 bool checked_instant_promo_; |
| 253 scoped_ptr<PromoCounter> instant_promo_counter_; |
| 254 #endif |
| 255 |
250 // Set to true when ShutdownSessionService is invoked. If true | 256 // Set to true when ShutdownSessionService is invoked. If true |
251 // GetSessionService won't recreate the SessionService. | 257 // GetSessionService won't recreate the SessionService. |
252 bool shutdown_session_service_; | 258 bool shutdown_session_service_; |
253 | 259 |
254 // The AppCacheService for this profile, shared by all requests contexts | 260 // The AppCacheService for this profile, shared by all requests contexts |
255 // associated with this profile. Should only be used on the IO thread. | 261 // associated with this profile. Should only be used on the IO thread. |
256 scoped_refptr<ChromeAppCacheService> appcache_service_; | 262 scoped_refptr<ChromeAppCacheService> appcache_service_; |
257 | 263 |
258 // The main database tracker for this profile. | 264 // The main database tracker for this profile. |
259 // Should be used only on the file thread. | 265 // Should be used only on the file thread. |
260 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 266 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
261 | 267 |
262 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 268 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
263 | 269 |
264 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 270 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
265 | 271 |
266 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 272 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
267 | 273 |
268 #if defined(OS_CHROMEOS) | 274 #if defined(OS_CHROMEOS) |
269 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 275 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
270 | 276 |
271 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 277 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
272 chromeos_proxy_config_service_impl_; | 278 chromeos_proxy_config_service_impl_; |
273 #endif | 279 #endif |
274 | 280 |
275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 281 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
276 }; | 282 }; |
277 | 283 |
278 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ | 284 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ |
OLD | NEW |