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

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: Fix ShellContentBrowserClient off-the-record-profile 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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "chrome/browser/net/pref_proxy_config_tracker.h" 15 #include "chrome/browser/net/pref_proxy_config_tracker.h"
16 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" 16 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
17 #include "content/public/browser/browser_context.h" 17 #include "content/public/browser/browser_context.h"
18 #include "net/url_request/url_request_job_factory.h"
18 19
19 class ChromeAppCacheService; 20 class ChromeAppCacheService;
20 class ChromeURLDataManager; 21 class ChromeURLDataManager;
21 class ExtensionService; 22 class ExtensionService;
22 class ExtensionSpecialStoragePolicy; 23 class ExtensionSpecialStoragePolicy;
23 class FaviconService; 24 class FaviconService;
24 class GAIAInfoUpdateService; 25 class GAIAInfoUpdateService;
25 class HostContentSettingsMap; 26 class HostContentSettingsMap;
26 class PasswordStore; 27 class PasswordStore;
27 class PrefService; 28 class PrefService;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // for this user profile. 219 // for this user profile.
219 virtual PrefService* GetPrefs() = 0; 220 virtual PrefService* GetPrefs() = 0;
220 221
221 // Retrieves a pointer to the PrefService that manages the preferences 222 // Retrieves a pointer to the PrefService that manages the preferences
222 // for OffTheRecord Profiles. This PrefService is lazily created the first 223 // for OffTheRecord Profiles. This PrefService is lazily created the first
223 // time that this method is called. 224 // time that this method is called.
224 virtual PrefService* GetOffTheRecordPrefs() = 0; 225 virtual PrefService* GetOffTheRecordPrefs() = 0;
225 226
226 // Returns the main request context. 227 // Returns the main request context.
227 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 228 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
229 virtual net::URLRequestContextGetter* CreateRequestContext(
awong 2012/12/13 23:53:08 Group this and the CreateRequestContextForStorageP
pauljensen 2012/12/14 16:16:20 Done.
230 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
231 blob_protocol_handler,
232 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
233 file_system_protocol_handler,
234 scoped_ptr<net::URLRequestJobFactory::Interceptor>
235 developer_protocol_handler) = 0;
228 236
229 // Returns the request context used for extension-related requests. This 237 // Returns the request context used for extension-related requests. This
230 // is only used for a separate cookie store currently. 238 // is only used for a separate cookie store currently.
231 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; 239 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0;
232 240
233 // Returns the request context used within |partition_id|. 241 // Returns the request context used within |partition_id|.
234 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( 242 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
235 const FilePath& partition_path, 243 const FilePath& partition_path,
236 bool in_memory) = 0; 244 bool in_memory,
245 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
246 blob_protocol_handler,
247 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
248 file_system_protocol_handler,
249 scoped_ptr<net::URLRequestJobFactory::Interceptor>
250 developer_protocol_handler) = 0;
237 251
238 // Returns the SSLConfigService for this profile. 252 // Returns the SSLConfigService for this profile.
239 virtual net::SSLConfigService* GetSSLConfigService() = 0; 253 virtual net::SSLConfigService* GetSSLConfigService() = 0;
240 254
241 // Returns the Hostname <-> Content settings map for this profile. 255 // Returns the Hostname <-> Content settings map for this profile.
242 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; 256 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0;
243 257
244 // Returns the ProtocolHandlerRegistry, creating if not yet created. 258 // Returns the ProtocolHandlerRegistry, creating if not yet created.
245 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory. 259 // TODO(smckay): replace this with access via ProtocolHandlerRegistryFactory.
246 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; 260 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 struct hash<Profile*> { 415 struct hash<Profile*> {
402 std::size_t operator()(Profile* const& p) const { 416 std::size_t operator()(Profile* const& p) const {
403 return reinterpret_cast<std::size_t>(p); 417 return reinterpret_cast<std::size_t>(p);
404 } 418 }
405 }; 419 };
406 420
407 } // namespace BASE_HASH_NAMESPACE 421 } // namespace BASE_HASH_NAMESPACE
408 #endif 422 #endif
409 423
410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 424 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698