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 | |
243 // Returns the request context used for extension-related requests. This | 240 // Returns the request context used for extension-related requests. This |
244 // is only used for a separate cookie store currently. | 241 // is only used for a separate cookie store currently. |
245 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 242 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
246 | 243 |
247 // Returns the request context used within an installed app that has | 244 // Returns the request context used within |partition_id|. |
248 // requested isolated storage. | 245 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( |
249 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 246 const std::string& partition_id) = 0; |
250 const std::string& app_id) = 0; | |
251 | 247 |
252 // Returns the SSLConfigService for this profile. | 248 // Returns the SSLConfigService for this profile. |
253 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 249 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
254 | 250 |
255 // Returns the Hostname <-> Content settings map for this profile. | 251 // Returns the Hostname <-> Content settings map for this profile. |
256 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 252 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
257 | 253 |
258 // Returns the ProtocolHandlerRegistry, creating if not yet created. | 254 // Returns the ProtocolHandlerRegistry, creating if not yet created. |
259 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. | 255 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. |
260 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; | 256 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 struct hash<Profile*> { | 401 struct hash<Profile*> { |
406 std::size_t operator()(Profile* const& p) const { | 402 std::size_t operator()(Profile* const& p) const { |
407 return reinterpret_cast<std::size_t>(p); | 403 return reinterpret_cast<std::size_t>(p); |
408 } | 404 } |
409 }; | 405 }; |
410 | 406 |
411 } // namespace BASE_HASH_NAMESPACE | 407 } // namespace BASE_HASH_NAMESPACE |
412 #endif | 408 #endif |
413 | 409 |
414 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |