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

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

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to Will's comments. Created 8 years, 6 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
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 #pragma once 9 #pragma once
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 97 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
98 const std::string& app_id) OVERRIDE; 98 const std::string& app_id) OVERRIDE;
99 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 99 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
100 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 100 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
101 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; 101 virtual BookmarkModel* GetBookmarkModel() OVERRIDE;
102 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 102 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
103 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 103 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
104 virtual base::Time GetStartTime() const OVERRIDE; 104 virtual base::Time GetStartTime() const OVERRIDE;
105 virtual void MarkAsCleanShutdown() OVERRIDE; 105 virtual void MarkAsCleanShutdown() OVERRIDE;
106 virtual void InitPromoResources() OVERRIDE; 106 virtual void InitPromoResources() OVERRIDE;
107 virtual void InitRegisteredProtocolHandlers() OVERRIDE;
108 virtual FilePath last_selected_directory() OVERRIDE; 107 virtual FilePath last_selected_directory() OVERRIDE;
109 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 108 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
110 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 109 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
111 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; 110 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE;
112 virtual GURL GetHomePage() OVERRIDE; 111 virtual GURL GetHomePage() OVERRIDE;
113 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 112 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
114 113
115 #if defined(OS_CHROMEOS) 114 #if defined(OS_CHROMEOS)
116 virtual void ChangeAppLocale(const std::string& locale, 115 virtual void ChangeAppLocale(const std::string& locale,
117 AppLocaleChangedVia) OVERRIDE; 116 AppLocaleChangedVia) OVERRIDE;
(...skipping 23 matching lines...) Expand all
141 140
142 ProfileImpl(const FilePath& path, 141 ProfileImpl(const FilePath& path,
143 Delegate* delegate, 142 Delegate* delegate,
144 CreateMode create_mode); 143 CreateMode create_mode);
145 144
146 // Does final initialization. Should be called after prefs were loaded. 145 // Does final initialization. Should be called after prefs were loaded.
147 void DoFinalInit(bool is_new_profile); 146 void DoFinalInit(bool is_new_profile);
148 147
149 void InitHostZoomMap(); 148 void InitHostZoomMap();
150 149
151 // The installation of any pre-defined protocol handlers.
152 void InstallDefaultProtocolHandlers();
153
154 // Does final prefs initialization and calls Init(). 150 // Does final prefs initialization and calls Init().
155 void OnPrefsLoaded(bool success); 151 void OnPrefsLoaded(bool success);
156 152
157 FilePath GetPrefFilePath(); 153 FilePath GetPrefFilePath();
158 154
159 #if defined(ENABLE_SESSION_SERVICE) 155 #if defined(ENABLE_SESSION_SERVICE)
160 void StopCreateSessionServiceTimer(); 156 void StopCreateSessionServiceTimer();
161 157
162 void EnsureSessionServiceCreated(); 158 void EnsureSessionServiceCreated();
163 #endif 159 #endif
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; 201 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_;
206 scoped_ptr<VisitedLinkMaster> visited_link_master_; 202 scoped_ptr<VisitedLinkMaster> visited_link_master_;
207 ProfileImplIOData::Handle io_data_; 203 ProfileImplIOData::Handle io_data_;
208 scoped_refptr<ExtensionSpecialStoragePolicy> 204 scoped_refptr<ExtensionSpecialStoragePolicy>
209 extension_special_storage_policy_; 205 extension_special_storage_policy_;
210 scoped_ptr<NetPrefObserver> net_pref_observer_; 206 scoped_ptr<NetPrefObserver> net_pref_observer_;
211 207
212 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) 208 #if defined(ENABLE_PROMO_RESOURCE_SERVICE)
213 scoped_refptr<PromoResourceService> promo_resource_service_; 209 scoped_refptr<PromoResourceService> promo_resource_service_;
214 #endif 210 #endif
215
216 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
217
218 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 211 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
219 212
220 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 213 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
221 scoped_refptr<content::GeolocationPermissionContext> 214 scoped_refptr<content::GeolocationPermissionContext>
222 geolocation_permission_context_; 215 geolocation_permission_context_;
223 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; 216 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_;
224 scoped_ptr<FaviconService> favicon_service_; 217 scoped_ptr<FaviconService> favicon_service_;
225 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 218 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
226 bool favicon_service_created_; 219 bool favicon_service_created_;
227 220
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 Profile::Delegate* delegate_; 260 Profile::Delegate* delegate_;
268 261
269 chrome_browser_net::Predictor* predictor_; 262 chrome_browser_net::Predictor* predictor_;
270 263
271 bool session_restore_enabled_; 264 bool session_restore_enabled_;
272 265
273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 266 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
274 }; 267 };
275 268
276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 269 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698