| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 virtual PrefService* GetPrefs() = 0; | 223 virtual PrefService* GetPrefs() = 0; |
| 224 | 224 |
| 225 // Retrieves a pointer to the PrefService that manages the preferences | 225 // Retrieves a pointer to the PrefService that manages the preferences |
| 226 // for OffTheRecord Profiles. This PrefService is lazily created the first | 226 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| 227 // time that this method is called. | 227 // time that this method is called. |
| 228 virtual PrefService* GetOffTheRecordPrefs() = 0; | 228 virtual PrefService* GetOffTheRecordPrefs() = 0; |
| 229 | 229 |
| 230 // Returns the main request context. | 230 // Returns the main request context. |
| 231 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 231 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
| 232 | 232 |
| 233 // Returns the request context used for extension-related requests. This | |
| 234 // is only used for a separate cookie store currently. | |
| 235 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | |
| 236 | |
| 237 // Returns the SSLConfigService for this profile. | 233 // Returns the SSLConfigService for this profile. |
| 238 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 234 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
| 239 | 235 |
| 240 // Returns the Hostname <-> Content settings map for this profile. | 236 // Returns the Hostname <-> Content settings map for this profile. |
| 241 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 237 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
| 242 | 238 |
| 243 // Return whether 2 profiles are the same. 2 profiles are the same if they | 239 // Return whether 2 profiles are the same. 2 profiles are the same if they |
| 244 // represent the same profile. This can happen if there is pointer equality | 240 // represent the same profile. This can happen if there is pointer equality |
| 245 // or if one profile is the incognito version of another profile (or vice | 241 // or if one profile is the incognito version of another profile (or vice |
| 246 // versa). | 242 // versa). |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 struct hash<Profile*> { | 403 struct hash<Profile*> { |
| 408 std::size_t operator()(Profile* const& p) const { | 404 std::size_t operator()(Profile* const& p) const { |
| 409 return reinterpret_cast<std::size_t>(p); | 405 return reinterpret_cast<std::size_t>(p); |
| 410 } | 406 } |
| 411 }; | 407 }; |
| 412 | 408 |
| 413 } // namespace BASE_HASH_NAMESPACE | 409 } // namespace BASE_HASH_NAMESPACE |
| 414 #endif | 410 #endif |
| 415 | 411 |
| 416 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 412 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |