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

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

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove incorrect comment Created 8 years 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // for this user profile. 218 // for this user profile.
219 virtual PrefService* GetPrefs() = 0; 219 virtual PrefService* GetPrefs() = 0;
220 220
221 // Retrieves a pointer to the PrefService that manages the preferences 221 // Retrieves a pointer to the PrefService that manages the preferences
222 // for OffTheRecord Profiles. This PrefService is lazily created the first 222 // for OffTheRecord Profiles. This PrefService is lazily created the first
223 // time that this method is called. 223 // time that this method is called.
224 virtual PrefService* GetOffTheRecordPrefs() = 0; 224 virtual PrefService* GetOffTheRecordPrefs() = 0;
225 225
226 // Returns the main request context. 226 // Returns the main request context.
227 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 227 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
228 virtual net::URLRequestContextGetter* CreateRequestContext(
229 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
230 blob_protocol_handler,
231 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
232 file_system_protocol_handler,
233 scoped_ptr<net::URLRequestJobFactory::Interceptor>
234 developer_protocol_handler) = 0;
228 235
229 // Returns the request context used for extension-related requests. This 236 // Returns the request context used for extension-related requests. This
230 // is only used for a separate cookie store currently. 237 // is only used for a separate cookie store currently.
231 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; 238 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0;
232 239
233 // Returns the request context used within |partition_id|. 240 // Returns the request context used within |partition_id|.
234 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( 241 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
235 const FilePath& partition_path, 242 const FilePath& partition_path,
236 bool in_memory) = 0; 243 bool in_memory,
244 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
245 blob_protocol_handler,
246 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
247 file_system_protocol_handler,
248 scoped_ptr<net::URLRequestJobFactory::Interceptor>
249 developer_protocol_handler) = 0;
237 250
238 // Returns the SSLConfigService for this profile. 251 // Returns the SSLConfigService for this profile.
239 virtual net::SSLConfigService* GetSSLConfigService() = 0; 252 virtual net::SSLConfigService* GetSSLConfigService() = 0;
240 253
241 // Returns the Hostname <-> Content settings map for this profile. 254 // Returns the Hostname <-> Content settings map for this profile.
242 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; 255 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0;
243 256
244 // Returns the ProtocolHandlerRegistry, creating if not yet created. 257 // Returns the ProtocolHandlerRegistry, creating if not yet created.
245 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. 258 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory.
246 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; 259 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 struct hash<Profile*> { 414 struct hash<Profile*> {
402 std::size_t operator()(Profile* const& p) const { 415 std::size_t operator()(Profile* const& p) const {
403 return reinterpret_cast<std::size_t>(p); 416 return reinterpret_cast<std::size_t>(p);
404 } 417 }
405 }; 418 };
406 419
407 } // namespace BASE_HASH_NAMESPACE 420 } // namespace BASE_HASH_NAMESPACE
408 #endif 421 #endif
409 422
410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 423 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698