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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 110 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
111 // Note that this implementation returns the Google-services username, if any, | 111 // Note that this implementation returns the Google-services username, if any, |
112 // not the Chrome user's display name. | 112 // not the Chrome user's display name. |
113 virtual std::string GetProfileName() OVERRIDE; | 113 virtual std::string GetProfileName() OVERRIDE; |
114 virtual ProfileType GetProfileType() const OVERRIDE; | 114 virtual ProfileType GetProfileType() const OVERRIDE; |
115 virtual bool IsOffTheRecord() const OVERRIDE; | 115 virtual bool IsOffTheRecord() const OVERRIDE; |
116 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 116 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
117 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 117 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
118 virtual bool HasOffTheRecordProfile() OVERRIDE; | 118 virtual bool HasOffTheRecordProfile() OVERRIDE; |
119 virtual Profile* GetOriginalProfile() OVERRIDE; | 119 virtual Profile* GetOriginalProfile() OVERRIDE; |
120 virtual bool IsManaged() OVERRIDE; | 120 virtual bool IsSupervised() OVERRIDE; |
121 virtual history::TopSites* GetTopSites() OVERRIDE; | 121 virtual history::TopSites* GetTopSites() OVERRIDE; |
122 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 122 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
123 virtual ExtensionService* GetExtensionService() OVERRIDE; | 123 virtual ExtensionService* GetExtensionService() OVERRIDE; |
124 virtual ExtensionSpecialStoragePolicy* | 124 virtual ExtensionSpecialStoragePolicy* |
125 GetExtensionSpecialStoragePolicy() OVERRIDE; | 125 GetExtensionSpecialStoragePolicy() OVERRIDE; |
126 virtual PrefService* GetPrefs() OVERRIDE; | 126 virtual PrefService* GetPrefs() OVERRIDE; |
127 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 127 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
128 virtual net::URLRequestContextGetter* | 128 virtual net::URLRequestContextGetter* |
129 GetRequestContextForExtensions() OVERRIDE; | 129 GetRequestContextForExtensions() OVERRIDE; |
130 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 130 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 void EnsureSessionServiceCreated(); | 203 void EnsureSessionServiceCreated(); |
204 #endif | 204 #endif |
205 | 205 |
206 | 206 |
207 void EnsureRequestContextCreated() { | 207 void EnsureRequestContextCreated() { |
208 GetRequestContext(); | 208 GetRequestContext(); |
209 } | 209 } |
210 | 210 |
211 // Updates the ProfileInfoCache with data from this profile. | 211 // Updates the ProfileInfoCache with data from this profile. |
212 void UpdateProfileUserNameCache(); | 212 void UpdateProfileUserNameCache(); |
213 void UpdateProfileManagedUserIdCache(); | 213 void UpdateProfileSupervisedUserIdCache(); |
214 void UpdateProfileNameCache(); | 214 void UpdateProfileNameCache(); |
215 void UpdateProfileAvatarCache(); | 215 void UpdateProfileAvatarCache(); |
216 void UpdateProfileIsEphemeralCache(); | 216 void UpdateProfileIsEphemeralCache(); |
217 | 217 |
218 void GetCacheParameters(bool is_media_context, | 218 void GetCacheParameters(bool is_media_context, |
219 base::FilePath* cache_path, | 219 base::FilePath* cache_path, |
220 int* max_size); | 220 int* max_size); |
221 | 221 |
222 PrefProxyConfigTracker* CreateProxyConfigTracker(); | 222 PrefProxyConfigTracker* CreateProxyConfigTracker(); |
223 | 223 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 // components/keyed_service/content/browser_context_keyed_service_factory.* | 302 // components/keyed_service/content/browser_context_keyed_service_factory.* |
303 | 303 |
304 Profile::Delegate* delegate_; | 304 Profile::Delegate* delegate_; |
305 | 305 |
306 chrome_browser_net::Predictor* predictor_; | 306 chrome_browser_net::Predictor* predictor_; |
307 | 307 |
308 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 308 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
309 }; | 309 }; |
310 | 310 |
311 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 311 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |