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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 bool in_memory) OVERRIDE; | 80 bool in_memory) OVERRIDE; |
81 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 81 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
82 virtual content::GeolocationPermissionContext* | 82 virtual content::GeolocationPermissionContext* |
83 GetGeolocationPermissionContext() OVERRIDE; | 83 GetGeolocationPermissionContext() OVERRIDE; |
84 virtual content::SpeechRecognitionPreferences* | 84 virtual content::SpeechRecognitionPreferences* |
85 GetSpeechRecognitionPreferences() OVERRIDE; | 85 GetSpeechRecognitionPreferences() OVERRIDE; |
86 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 86 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
87 | 87 |
88 // Profile implementation: | 88 // Profile implementation: |
89 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 89 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
| 90 // Note that this implementation returns the Google-services username, if any, |
| 91 // not the Chrome user's display name. |
90 virtual std::string GetProfileName() OVERRIDE; | 92 virtual std::string GetProfileName() OVERRIDE; |
91 virtual bool IsOffTheRecord() const OVERRIDE; | 93 virtual bool IsOffTheRecord() const OVERRIDE; |
92 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 94 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
93 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 95 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
94 virtual bool HasOffTheRecordProfile() OVERRIDE; | 96 virtual bool HasOffTheRecordProfile() OVERRIDE; |
95 virtual Profile* GetOriginalProfile() OVERRIDE; | 97 virtual Profile* GetOriginalProfile() OVERRIDE; |
96 virtual history::TopSites* GetTopSites() OVERRIDE; | 98 virtual history::TopSites* GetTopSites() OVERRIDE; |
97 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 99 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
98 virtual ExtensionService* GetExtensionService() OVERRIDE; | 100 virtual ExtensionService* GetExtensionService() OVERRIDE; |
99 virtual ExtensionSpecialStoragePolicy* | 101 virtual ExtensionSpecialStoragePolicy* |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} | 267 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} |
266 | 268 |
267 Profile::Delegate* delegate_; | 269 Profile::Delegate* delegate_; |
268 | 270 |
269 chrome_browser_net::Predictor* predictor_; | 271 chrome_browser_net::Predictor* predictor_; |
270 | 272 |
271 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
272 }; | 274 }; |
273 | 275 |
274 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |