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_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // level and the per-host zoom levels for this user profile. | 195 // level and the per-host zoom levels for this user profile. |
196 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. | 196 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. |
197 virtual ChromeZoomLevelPrefs* GetZoomLevelPrefs(); | 197 virtual ChromeZoomLevelPrefs* GetZoomLevelPrefs(); |
198 | 198 |
199 // Retrieves a pointer to the PrefService that manages the preferences | 199 // Retrieves a pointer to the PrefService that manages the preferences |
200 // for OffTheRecord Profiles. This PrefService is lazily created the first | 200 // for OffTheRecord Profiles. This PrefService is lazily created the first |
201 // time that this method is called. | 201 // time that this method is called. |
202 virtual PrefService* GetOffTheRecordPrefs() = 0; | 202 virtual PrefService* GetOffTheRecordPrefs() = 0; |
203 | 203 |
204 // Returns the main request context. | 204 // Returns the main request context. |
205 net::URLRequestContextGetter* GetRequestContext() override = 0; | 205 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
206 | 206 |
207 // Returns the request context used for extension-related requests. This | 207 // Returns the request context used for extension-related requests. This |
208 // is only used for a separate cookie store currently. | 208 // is only used for a separate cookie store currently. |
209 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 209 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
210 | 210 |
211 // Returns the SSLConfigService for this profile. | 211 // Returns the SSLConfigService for this profile. |
212 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 212 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
213 | 213 |
214 // Return whether 2 profiles are the same. 2 profiles are the same if they | 214 // Return whether 2 profiles are the same. 2 profiles are the same if they |
215 // represent the same profile. This can happen if there is pointer equality | 215 // represent the same profile. This can happen if there is pointer equality |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 DISALLOW_COPY_AND_ASSIGN(Profile); | 374 DISALLOW_COPY_AND_ASSIGN(Profile); |
375 }; | 375 }; |
376 | 376 |
377 // The comparator for profile pointers as key in a map. | 377 // The comparator for profile pointers as key in a map. |
378 struct ProfileCompare { | 378 struct ProfileCompare { |
379 bool operator()(Profile* a, Profile* b) const; | 379 bool operator()(Profile* a, Profile* b) const; |
380 }; | 380 }; |
381 | 381 |
382 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 382 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |