OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual ProfileSyncService* GetProfileSyncService( | 129 virtual ProfileSyncService* GetProfileSyncService( |
130 const std::string& cros_user) OVERRIDE; | 130 const std::string& cros_user) OVERRIDE; |
131 virtual TokenService* GetTokenService() OVERRIDE; | 131 virtual TokenService* GetTokenService() OVERRIDE; |
132 void InitSyncService(const std::string& cros_user); | 132 void InitSyncService(const std::string& cros_user); |
133 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE; | 133 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE; |
134 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; | 134 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; |
135 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; | 135 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; |
136 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 136 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
137 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; | 137 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; |
138 virtual GURL GetHomePage() OVERRIDE; | 138 virtual GURL GetHomePage() OVERRIDE; |
139 virtual NetworkActionPredictor* GetNetworkActionPredictor() OVERRIDE; | |
140 virtual void SaveSessionState() OVERRIDE; | 139 virtual void SaveSessionState() OVERRIDE; |
141 | 140 |
142 #if defined(OS_CHROMEOS) | 141 #if defined(OS_CHROMEOS) |
143 virtual void ChangeAppLocale(const std::string& locale, | 142 virtual void ChangeAppLocale(const std::string& locale, |
144 AppLocaleChangedVia) OVERRIDE; | 143 AppLocaleChangedVia) OVERRIDE; |
145 virtual void OnLogin() OVERRIDE; | 144 virtual void OnLogin() OVERRIDE; |
146 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; | 145 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; |
147 virtual void InitChromeOSPreferences() OVERRIDE; | 146 virtual void InitChromeOSPreferences() OVERRIDE; |
148 #endif // defined(OS_CHROMEOS) | 147 #endif // defined(OS_CHROMEOS) |
149 | 148 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 258 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
260 scoped_refptr<HistoryService> history_service_; | 259 scoped_refptr<HistoryService> history_service_; |
261 scoped_ptr<FaviconService> favicon_service_; | 260 scoped_ptr<FaviconService> favicon_service_; |
262 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 261 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
263 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 262 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
264 scoped_refptr<WebDataService> web_data_service_; | 263 scoped_refptr<WebDataService> web_data_service_; |
265 scoped_refptr<PasswordStore> password_store_; | 264 scoped_refptr<PasswordStore> password_store_; |
266 scoped_refptr<WebKitContext> webkit_context_; | 265 scoped_refptr<WebKitContext> webkit_context_; |
267 scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 266 scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
268 scoped_refptr<quota::QuotaManager> quota_manager_; | 267 scoped_refptr<quota::QuotaManager> quota_manager_; |
269 scoped_ptr<NetworkActionPredictor> network_action_predictor_; | |
270 bool history_service_created_; | 268 bool history_service_created_; |
271 bool favicon_service_created_; | 269 bool favicon_service_created_; |
272 bool created_web_data_service_; | 270 bool created_web_data_service_; |
273 bool created_password_store_; | 271 bool created_password_store_; |
274 bool clear_local_state_on_exit_; | 272 bool clear_local_state_on_exit_; |
275 // Whether or not the last session exited cleanly. This is set only once. | 273 // Whether or not the last session exited cleanly. This is set only once. |
276 bool last_session_exited_cleanly_; | 274 bool last_session_exited_cleanly_; |
277 | 275 |
278 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 276 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
279 | 277 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 Profile::Delegate* delegate_; | 315 Profile::Delegate* delegate_; |
318 | 316 |
319 chrome_browser_net::Predictor* predictor_; | 317 chrome_browser_net::Predictor* predictor_; |
320 | 318 |
321 bool session_restore_enabled_; | 319 bool session_restore_enabled_; |
322 | 320 |
323 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 321 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
324 }; | 322 }; |
325 | 323 |
326 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 324 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |