Chromium Code Reviews| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 251 | 251 |
| 252 // Returns the main request context. | 252 // Returns the main request context. |
| 253 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 253 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
| 254 | 254 |
| 255 // Returns the request context used for extension-related requests. This | 255 // Returns the request context used for extension-related requests. This |
| 256 // is only used for a separate cookie store currently. | 256 // is only used for a separate cookie store currently. |
| 257 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 257 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| 258 | 258 |
| 259 // Returns the request context used within |partition_id|. | 259 // Returns the request context used within |partition_id|. |
| 260 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( | 260 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( |
| 261 const std::string& partition_id) = 0; | 261 const FilePath& partition_path, |
| 262 const bool& in_memory) = 0; | |
|
awong
2012/10/18 22:36:15
don't pass primitives types by const-ref. That's j
nasko
2012/10/19 17:29:14
Done.
| |
| 262 | 263 |
| 263 // Returns the SSLConfigService for this profile. | 264 // Returns the SSLConfigService for this profile. |
| 264 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 265 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
| 265 | 266 |
| 266 // Returns the Hostname <-> Content settings map for this profile. | 267 // Returns the Hostname <-> Content settings map for this profile. |
| 267 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 268 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
| 268 | 269 |
| 269 // Returns the ProtocolHandlerRegistry, creating if not yet created. | 270 // Returns the ProtocolHandlerRegistry, creating if not yet created. |
| 270 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. | 271 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. |
| 271 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; | 272 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 422 struct hash<Profile*> { | 423 struct hash<Profile*> { |
| 423 std::size_t operator()(Profile* const& p) const { | 424 std::size_t operator()(Profile* const& p) const { |
| 424 return reinterpret_cast<std::size_t>(p); | 425 return reinterpret_cast<std::size_t>(p); |
| 425 } | 426 } |
| 426 }; | 427 }; |
| 427 | 428 |
| 428 } // namespace BASE_HASH_NAMESPACE | 429 } // namespace BASE_HASH_NAMESPACE |
| 429 #endif | 430 #endif |
| 430 | 431 |
| 431 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 432 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |