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

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: Removed macro and InMemory. Created 8 years, 2 months 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool in_memory) = 0;
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698