Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 11147026: Initial refactor to get profiles to propagate storage partition details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing Android's BrowserContext. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
230 230
231 // Returns the main request context. 231 // Returns the main request context.
232 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 232 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
233 233
234 // Returns the request context used for extension-related requests. This 234 // Returns the request context used for extension-related requests. This
235 // is only used for a separate cookie store currently. 235 // is only used for a separate cookie store currently.
236 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; 236 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0;
237 237
238 // Returns the request context used within |partition_id|. 238 // Returns the request context used within |partition_id|.
239 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( 239 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition(
240 const std::string& partition_id) = 0; 240 const FilePath& partition_path,
241 bool in_memory) = 0;
241 242
242 // Returns the SSLConfigService for this profile. 243 // Returns the SSLConfigService for this profile.
243 virtual net::SSLConfigService* GetSSLConfigService() = 0; 244 virtual net::SSLConfigService* GetSSLConfigService() = 0;
244 245
245 // Returns the Hostname <-> Content settings map for this profile. 246 // Returns the Hostname <-> Content settings map for this profile.
246 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; 247 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0;
247 248
248 // Returns the ProtocolHandlerRegistry, creating if not yet created. 249 // Returns the ProtocolHandlerRegistry, creating if not yet created.
249 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. 250 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory.
250 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; 251 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 struct hash<Profile*> { 403 struct hash<Profile*> {
403 std::size_t operator()(Profile* const& p) const { 404 std::size_t operator()(Profile* const& p) const {
404 return reinterpret_cast<std::size_t>(p); 405 return reinterpret_cast<std::size_t>(p);
405 } 406 }
406 }; 407 };
407 408
408 } // namespace BASE_HASH_NAMESPACE 409 } // namespace BASE_HASH_NAMESPACE
409 #endif 410 #endif
410 411
411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 412 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698