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> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 std::string GetProfileName() override; | 102 std::string GetProfileName() override; |
103 ProfileType GetProfileType() const override; | 103 ProfileType GetProfileType() const override; |
104 bool IsOffTheRecord() const override; | 104 bool IsOffTheRecord() const override; |
105 Profile* GetOffTheRecordProfile() override; | 105 Profile* GetOffTheRecordProfile() override; |
106 void DestroyOffTheRecordProfile() override; | 106 void DestroyOffTheRecordProfile() override; |
107 bool HasOffTheRecordProfile() override; | 107 bool HasOffTheRecordProfile() override; |
108 Profile* GetOriginalProfile() override; | 108 Profile* GetOriginalProfile() override; |
109 bool IsSupervised() override; | 109 bool IsSupervised() override; |
110 bool IsChild() override; | 110 bool IsChild() override; |
111 bool IsLegacySupervised() override; | 111 bool IsLegacySupervised() override; |
112 history::TopSites* GetTopSites() override; | |
113 history::TopSites* GetTopSitesWithoutCreating() override; | |
114 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; | 112 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; |
115 PrefService* GetPrefs() override; | 113 PrefService* GetPrefs() override; |
116 chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; | 114 chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; |
117 PrefService* GetOffTheRecordPrefs() override; | 115 PrefService* GetOffTheRecordPrefs() override; |
118 net::URLRequestContextGetter* GetRequestContextForExtensions() override; | 116 net::URLRequestContextGetter* GetRequestContextForExtensions() override; |
119 net::SSLConfigService* GetSSLConfigService() override; | 117 net::SSLConfigService* GetSSLConfigService() override; |
120 HostContentSettingsMap* GetHostContentSettingsMap() override; | 118 HostContentSettingsMap* GetHostContentSettingsMap() override; |
121 bool IsSameProfile(Profile* profile) override; | 119 bool IsSameProfile(Profile* profile) override; |
122 base::Time GetStartTime() const override; | 120 base::Time GetStartTime() const override; |
123 net::URLRequestContextGetter* CreateRequestContext( | 121 net::URLRequestContextGetter* CreateRequestContext( |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 246 |
249 #if defined(ENABLE_SESSION_SERVICE) | 247 #if defined(ENABLE_SESSION_SERVICE) |
250 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 248 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
251 #endif | 249 #endif |
252 | 250 |
253 scoped_ptr<Profile> off_the_record_profile_; | 251 scoped_ptr<Profile> off_the_record_profile_; |
254 | 252 |
255 // See GetStartTime for details. | 253 // See GetStartTime for details. |
256 base::Time start_time_; | 254 base::Time start_time_; |
257 | 255 |
258 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | |
259 | |
260 #if defined(OS_CHROMEOS) | 256 #if defined(OS_CHROMEOS) |
261 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 257 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
262 | 258 |
263 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; | 259 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; |
264 | 260 |
265 bool is_login_profile_; | 261 bool is_login_profile_; |
266 #endif | 262 #endif |
267 | 263 |
268 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 264 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
269 | 265 |
(...skipping 12 matching lines...) Expand all Loading... |
282 // components/keyed_service/content/browser_context_keyed_service_factory.* | 278 // components/keyed_service/content/browser_context_keyed_service_factory.* |
283 | 279 |
284 Profile::Delegate* delegate_; | 280 Profile::Delegate* delegate_; |
285 | 281 |
286 chrome_browser_net::Predictor* predictor_; | 282 chrome_browser_net::Predictor* predictor_; |
287 | 283 |
288 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 284 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
289 }; | 285 }; |
290 | 286 |
291 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 287 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |