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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 content::ResourceContext* GetResourceContext() override; | 86 content::ResourceContext* GetResourceContext() override; |
87 content::BrowserPluginGuestManager* GetGuestManager() override; | 87 content::BrowserPluginGuestManager* GetGuestManager() override; |
88 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 88 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
89 content::PushMessagingService* GetPushMessagingService() override; | 89 content::PushMessagingService* GetPushMessagingService() override; |
90 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 90 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
91 | 91 |
92 // Profile implementation: | 92 // Profile implementation: |
93 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; | 93 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; |
94 // Note that this implementation returns the Google-services username, if any, | 94 // Note that this implementation returns the Google-services username, if any, |
95 // not the Chrome user's display name. | 95 // not the Chrome user's display name. |
96 std::string GetProfileUserName() override; | 96 std::string GetProfileUserName() const override; |
97 ProfileType GetProfileType() const override; | 97 ProfileType GetProfileType() const override; |
98 bool IsOffTheRecord() const override; | 98 bool IsOffTheRecord() const override; |
99 Profile* GetOffTheRecordProfile() override; | 99 Profile* GetOffTheRecordProfile() override; |
100 void DestroyOffTheRecordProfile() override; | 100 void DestroyOffTheRecordProfile() override; |
101 bool HasOffTheRecordProfile() override; | 101 bool HasOffTheRecordProfile() override; |
102 Profile* GetOriginalProfile() override; | 102 Profile* GetOriginalProfile() override; |
103 bool IsSupervised() override; | 103 bool IsSupervised() override; |
104 bool IsChild() override; | 104 bool IsChild() override; |
105 bool IsLegacySupervised() override; | 105 bool IsLegacySupervised() override; |
106 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; | 106 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; |
107 PrefService* GetPrefs() override; | 107 PrefService* GetPrefs() override; |
| 108 const PrefService* GetPrefs() const override; |
108 chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; | 109 chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; |
109 PrefService* GetOffTheRecordPrefs() override; | 110 PrefService* GetOffTheRecordPrefs() override; |
110 net::URLRequestContextGetter* GetRequestContextForExtensions() override; | 111 net::URLRequestContextGetter* GetRequestContextForExtensions() override; |
111 net::SSLConfigService* GetSSLConfigService() override; | 112 net::SSLConfigService* GetSSLConfigService() override; |
112 HostContentSettingsMap* GetHostContentSettingsMap() override; | 113 HostContentSettingsMap* GetHostContentSettingsMap() override; |
113 bool IsSameProfile(Profile* profile) override; | 114 bool IsSameProfile(Profile* profile) override; |
114 base::Time GetStartTime() const override; | 115 base::Time GetStartTime() const override; |
115 net::URLRequestContextGetter* CreateRequestContext( | 116 net::URLRequestContextGetter* CreateRequestContext( |
116 content::ProtocolHandlerMap* protocol_handlers, | 117 content::ProtocolHandlerMap* protocol_handlers, |
117 content::URLRequestInterceptorScopedVector request_interceptors) override; | 118 content::URLRequestInterceptorScopedVector request_interceptors) override; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // components/keyed_service/content/browser_context_keyed_service_factory.* | 273 // components/keyed_service/content/browser_context_keyed_service_factory.* |
273 | 274 |
274 Profile::Delegate* delegate_; | 275 Profile::Delegate* delegate_; |
275 | 276 |
276 chrome_browser_net::Predictor* predictor_; | 277 chrome_browser_net::Predictor* predictor_; |
277 | 278 |
278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 279 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
279 }; | 280 }; |
280 | 281 |
281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 282 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |