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

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

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Eliminate OffTheRecordProfileIOData::Handle::GetMainRequestContextGetter Created 7 years, 11 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_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 static void RegisterUserPrefs(PrefServiceSyncable* prefs); 61 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
62 62
63 // content::BrowserContext implementation: 63 // content::BrowserContext implementation:
64 virtual FilePath GetPath() OVERRIDE; 64 virtual FilePath GetPath() OVERRIDE;
65 virtual content::DownloadManagerDelegate* 65 virtual content::DownloadManagerDelegate*
66 GetDownloadManagerDelegate() OVERRIDE; 66 GetDownloadManagerDelegate() OVERRIDE;
67 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 67 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
68 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 68 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
69 int renderer_child_id) OVERRIDE; 69 int renderer_child_id) OVERRIDE;
70 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition(
71 const FilePath& partition_path,
72 bool in_memory) OVERRIDE;
73 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 70 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
74 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 71 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
75 int renderer_child_id) OVERRIDE; 72 int renderer_child_id) OVERRIDE;
76 virtual net::URLRequestContextGetter* 73 virtual net::URLRequestContextGetter*
77 GetMediaRequestContextForStoragePartition( 74 GetMediaRequestContextForStoragePartition(
78 const FilePath& partition_path, 75 const FilePath& partition_path,
79 bool in_memory) OVERRIDE; 76 bool in_memory) OVERRIDE;
80 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 77 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
81 virtual content::GeolocationPermissionContext* 78 virtual content::GeolocationPermissionContext*
82 GetGeolocationPermissionContext() OVERRIDE; 79 GetGeolocationPermissionContext() OVERRIDE;
(...skipping 19 matching lines...) Expand all
102 virtual policy::PolicyService* GetPolicyService() OVERRIDE; 99 virtual policy::PolicyService* GetPolicyService() OVERRIDE;
103 virtual PrefServiceSyncable* GetPrefs() OVERRIDE; 100 virtual PrefServiceSyncable* GetPrefs() OVERRIDE;
104 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE; 101 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE;
105 virtual net::URLRequestContextGetter* 102 virtual net::URLRequestContextGetter*
106 GetRequestContextForExtensions() OVERRIDE; 103 GetRequestContextForExtensions() OVERRIDE;
107 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 104 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
108 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 105 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
109 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 106 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
110 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 107 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
111 virtual base::Time GetStartTime() const OVERRIDE; 108 virtual base::Time GetStartTime() const OVERRIDE;
109 virtual net::URLRequestContextGetter* CreateRequestContext(
110 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
111 blob_protocol_handler,
112 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
113 file_system_protocol_handler,
114 scoped_ptr<net::URLRequestJobFactory::Interceptor>
115 developer_protocol_handler) OVERRIDE;
116 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
117 const FilePath& partition_path,
118 bool in_memory,
119 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
120 blob_protocol_handler,
121 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
122 file_system_protocol_handler,
123 scoped_ptr<net::URLRequestJobFactory::Interceptor>
124 developer_protocol_handler) OVERRIDE;
112 virtual FilePath last_selected_directory() OVERRIDE; 125 virtual FilePath last_selected_directory() OVERRIDE;
113 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 126 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
114 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 127 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
115 virtual void ClearNetworkingHistorySince( 128 virtual void ClearNetworkingHistorySince(
116 base::Time time, 129 base::Time time,
117 const base::Closure& completion) OVERRIDE; 130 const base::Closure& completion) OVERRIDE;
118 virtual GURL GetHomePage() OVERRIDE; 131 virtual GURL GetHomePage() OVERRIDE;
119 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 132 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
120 virtual void SetExitType(ExitType exit_type) OVERRIDE; 133 virtual void SetExitType(ExitType exit_type) OVERRIDE;
121 virtual ExitType GetLastSessionExitType() OVERRIDE; 134 virtual ExitType GetLastSessionExitType() OVERRIDE;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 283 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
271 284
272 Profile::Delegate* delegate_; 285 Profile::Delegate* delegate_;
273 286
274 chrome_browser_net::Predictor* predictor_; 287 chrome_browser_net::Predictor* predictor_;
275 288
276 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 289 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
277 }; 290 };
278 291
279 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 292 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698