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

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: Minor docu-changes. Created 8 years, 5 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 9
10 #include <string> 10 #include <string>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 95 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
96 const std::string& app_id) OVERRIDE; 96 const std::string& app_id) OVERRIDE;
97 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 97 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
98 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 98 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
99 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; 99 virtual BookmarkModel* GetBookmarkModel() OVERRIDE;
100 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 100 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
101 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 101 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
102 virtual base::Time GetStartTime() const OVERRIDE; 102 virtual base::Time GetStartTime() const OVERRIDE;
103 virtual void MarkAsCleanShutdown() OVERRIDE; 103 virtual void MarkAsCleanShutdown() OVERRIDE;
104 virtual void InitPromoResources() OVERRIDE; 104 virtual void InitPromoResources() OVERRIDE;
105 virtual void InitRegisteredProtocolHandlers() OVERRIDE;
106 virtual FilePath last_selected_directory() OVERRIDE; 105 virtual FilePath last_selected_directory() OVERRIDE;
107 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 106 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
108 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 107 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
109 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; 108 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE;
110 virtual GURL GetHomePage() OVERRIDE; 109 virtual GURL GetHomePage() OVERRIDE;
111 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 110 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
112 111
113 #if defined(OS_CHROMEOS) 112 #if defined(OS_CHROMEOS)
114 virtual void ChangeAppLocale(const std::string& locale, 113 virtual void ChangeAppLocale(const std::string& locale,
115 AppLocaleChangedVia) OVERRIDE; 114 AppLocaleChangedVia) OVERRIDE;
(...skipping 23 matching lines...) Expand all
139 138
140 ProfileImpl(const FilePath& path, 139 ProfileImpl(const FilePath& path,
141 Delegate* delegate, 140 Delegate* delegate,
142 CreateMode create_mode); 141 CreateMode create_mode);
143 142
144 // Does final initialization. Should be called after prefs were loaded. 143 // Does final initialization. Should be called after prefs were loaded.
145 void DoFinalInit(bool is_new_profile); 144 void DoFinalInit(bool is_new_profile);
146 145
147 void InitHostZoomMap(); 146 void InitHostZoomMap();
148 147
149 // The installation of any pre-defined protocol handlers.
150 void InstallDefaultProtocolHandlers();
151
152 // Does final prefs initialization and calls Init(). 148 // Does final prefs initialization and calls Init().
153 void OnPrefsLoaded(bool success); 149 void OnPrefsLoaded(bool success);
154 150
155 FilePath GetPrefFilePath(); 151 FilePath GetPrefFilePath();
156 152
157 #if defined(ENABLE_SESSION_SERVICE) 153 #if defined(ENABLE_SESSION_SERVICE)
158 void StopCreateSessionServiceTimer(); 154 void StopCreateSessionServiceTimer();
159 155
160 void EnsureSessionServiceCreated(); 156 void EnsureSessionServiceCreated();
161 #endif 157 #endif
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store 195 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store
200 // pointers to |prefs_| and shall be destructed first. 196 // pointers to |prefs_| and shall be destructed first.
201 scoped_ptr<PrefService> prefs_; 197 scoped_ptr<PrefService> prefs_;
202 scoped_ptr<PrefService> otr_prefs_; 198 scoped_ptr<PrefService> otr_prefs_;
203 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; 199 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_;
204 scoped_ptr<VisitedLinkMaster> visited_link_master_; 200 scoped_ptr<VisitedLinkMaster> visited_link_master_;
205 ProfileImplIOData::Handle io_data_; 201 ProfileImplIOData::Handle io_data_;
206 scoped_refptr<ExtensionSpecialStoragePolicy> 202 scoped_refptr<ExtensionSpecialStoragePolicy>
207 extension_special_storage_policy_; 203 extension_special_storage_policy_;
208 scoped_ptr<NetPrefObserver> net_pref_observer_; 204 scoped_ptr<NetPrefObserver> net_pref_observer_;
209
210 scoped_refptr<PromoResourceService> promo_resource_service_; 205 scoped_refptr<PromoResourceService> promo_resource_service_;
211
212 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
213
214 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 206 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
215
216 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 207 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
217 scoped_refptr<content::GeolocationPermissionContext> 208 scoped_refptr<content::GeolocationPermissionContext>
218 geolocation_permission_context_; 209 geolocation_permission_context_;
219 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; 210 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_;
220 scoped_ptr<FaviconService> favicon_service_; 211 scoped_ptr<FaviconService> favicon_service_;
221 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 212 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
222 bool favicon_service_created_; 213 bool favicon_service_created_;
223 214
224 // Whether or not the last session exited cleanly. This is set only once. 215 // Whether or not the last session exited cleanly. This is set only once.
225 bool last_session_exited_cleanly_; 216 bool last_session_exited_cleanly_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 Profile::Delegate* delegate_; 254 Profile::Delegate* delegate_;
264 255
265 chrome_browser_net::Predictor* predictor_; 256 chrome_browser_net::Predictor* predictor_;
266 257
267 bool session_restore_enabled_; 258 bool session_restore_enabled_;
268 259
269 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 260 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
270 }; 261 };
271 262
272 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 263 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698