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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 virtual PrefService* GetPrefs() = 0; | 230 virtual PrefService* GetPrefs() = 0; |
231 | 231 |
232 // Retrieves a pointer to the PrefService that manages the preferences | 232 // Retrieves a pointer to the PrefService that manages the preferences |
233 // for OffTheRecord Profiles. This PrefService is lazily created the first | 233 // for OffTheRecord Profiles. This PrefService is lazily created the first |
234 // time that this method is called. | 234 // time that this method is called. |
235 virtual PrefService* GetOffTheRecordPrefs() = 0; | 235 virtual PrefService* GetOffTheRecordPrefs() = 0; |
236 | 236 |
237 // Returns the main request context. | 237 // Returns the main request context. |
238 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 238 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
239 | 239 |
| 240 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( |
| 241 const std::string& partition_id) OVERRIDE; |
| 242 |
240 // Returns the request context used for extension-related requests. This | 243 // Returns the request context used for extension-related requests. This |
241 // is only used for a separate cookie store currently. | 244 // is only used for a separate cookie store currently. |
242 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 245 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
243 | 246 |
244 // Returns the request context used within an installed app that has | 247 // Returns the request context used within an installed app that has |
245 // requested isolated storage. | 248 // requested isolated storage. |
246 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 249 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
247 const std::string& app_id) = 0; | 250 const std::string& app_id) = 0; |
248 | 251 |
249 // Returns the SSLConfigService for this profile. | 252 // Returns the SSLConfigService for this profile. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 struct hash<Profile*> { | 405 struct hash<Profile*> { |
403 std::size_t operator()(Profile* const& p) const { | 406 std::size_t operator()(Profile* const& p) const { |
404 return reinterpret_cast<std::size_t>(p); | 407 return reinterpret_cast<std::size_t>(p); |
405 } | 408 } |
406 }; | 409 }; |
407 | 410 |
408 } // namespace BASE_HASH_NAMESPACE | 411 } // namespace BASE_HASH_NAMESPACE |
409 #endif | 412 #endif |
410 | 413 |
411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 414 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |