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 |
233 // Returns the SSLConfigService for this profile. | 237 // Returns the SSLConfigService for this profile. |
234 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 238 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
235 | 239 |
236 // Returns the Hostname <-> Content settings map for this profile. | 240 // Returns the Hostname <-> Content settings map for this profile. |
237 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 241 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
238 | 242 |
239 // Return whether 2 profiles are the same. 2 profiles are the same if they | 243 // Return whether 2 profiles are the same. 2 profiles are the same if they |
240 // represent the same profile. This can happen if there is pointer equality | 244 // represent the same profile. This can happen if there is pointer equality |
241 // or if one profile is the incognito version of another profile (or vice | 245 // or if one profile is the incognito version of another profile (or vice |
242 // versa). | 246 // versa). |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 struct hash<Profile*> { | 407 struct hash<Profile*> { |
404 std::size_t operator()(Profile* const& p) const { | 408 std::size_t operator()(Profile* const& p) const { |
405 return reinterpret_cast<std::size_t>(p); | 409 return reinterpret_cast<std::size_t>(p); |
406 } | 410 } |
407 }; | 411 }; |
408 | 412 |
409 } // namespace BASE_HASH_NAMESPACE | 413 } // namespace BASE_HASH_NAMESPACE |
410 #endif | 414 #endif |
411 | 415 |
412 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 416 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |