OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); | 96 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); |
97 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); | 97 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); |
98 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 98 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); |
99 virtual FindBarState* GetFindBarState(); | 99 virtual FindBarState* GetFindBarState(); |
100 virtual SessionService* GetSessionService(); | 100 virtual SessionService* GetSessionService(); |
101 virtual void ShutdownSessionService(); | 101 virtual void ShutdownSessionService(); |
102 virtual bool HasSessionService() const; | 102 virtual bool HasSessionService() const; |
103 virtual bool HasProfileSyncService() const; | 103 virtual bool HasProfileSyncService() const; |
104 virtual bool DidLastSessionExitCleanly(); | 104 virtual bool DidLastSessionExitCleanly(); |
105 virtual BookmarkModel* GetBookmarkModel(); | 105 virtual BookmarkModel* GetBookmarkModel(); |
106 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); | |
106 virtual bool IsSameProfile(Profile* profile); | 107 virtual bool IsSameProfile(Profile* profile); |
107 virtual base::Time GetStartTime() const; | 108 virtual base::Time GetStartTime() const; |
108 virtual TabRestoreService* GetTabRestoreService(); | 109 virtual TabRestoreService* GetTabRestoreService(); |
109 virtual void ResetTabRestoreService(); | 110 virtual void ResetTabRestoreService(); |
110 virtual SpellCheckHost* GetSpellCheckHost(); | 111 virtual SpellCheckHost* GetSpellCheckHost(); |
111 virtual void ReinitializeSpellCheckHost(bool force); | 112 virtual void ReinitializeSpellCheckHost(bool force); |
112 virtual WebKitContext* GetWebKitContext(); | 113 virtual WebKitContext* GetWebKitContext(); |
113 virtual DesktopNotificationService* GetDesktopNotificationService(); | 114 virtual DesktopNotificationService* GetDesktopNotificationService(); |
114 virtual BackgroundContentsService* GetBackgroundContentsService() const; | 115 virtual BackgroundContentsService* GetBackgroundContentsService() const; |
115 virtual StatusTray* GetStatusTray(); | 116 virtual StatusTray* GetStatusTray(); |
116 virtual void MarkAsCleanShutdown(); | 117 virtual void MarkAsCleanShutdown(); |
117 virtual void InitExtensions(); | 118 virtual void InitExtensions(); |
118 virtual void InitWebResources(); | 119 virtual void InitWebResources(); |
120 virtual void InitRegisteredProtocolHandlers(); | |
119 virtual NTPResourceCache* GetNTPResourceCache(); | 121 virtual NTPResourceCache* GetNTPResourceCache(); |
120 virtual FilePath last_selected_directory(); | 122 virtual FilePath last_selected_directory(); |
121 virtual void set_last_selected_directory(const FilePath& path); | 123 virtual void set_last_selected_directory(const FilePath& path); |
122 virtual ProfileSyncService* GetProfileSyncService(); | 124 virtual ProfileSyncService* GetProfileSyncService(); |
123 virtual ProfileSyncService* GetProfileSyncService( | 125 virtual ProfileSyncService* GetProfileSyncService( |
124 const std::string& cros_user); | 126 const std::string& cros_user); |
125 virtual TokenService* GetTokenService(); | 127 virtual TokenService* GetTokenService(); |
126 void InitSyncService(const std::string& cros_user); | 128 void InitSyncService(const std::string& cros_user); |
127 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 129 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
128 void InitCloudPrintProxyService(); | 130 void InitCloudPrintProxyService(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 scoped_ptr<SSLHostState> ssl_host_state_; | 202 scoped_ptr<SSLHostState> ssl_host_state_; |
201 scoped_refptr<net::TransportSecurityState> | 203 scoped_refptr<net::TransportSecurityState> |
202 transport_security_state_; | 204 transport_security_state_; |
203 scoped_refptr<TransportSecurityPersister> | 205 scoped_refptr<TransportSecurityPersister> |
204 transport_security_persister_; | 206 transport_security_persister_; |
205 scoped_ptr<policy::ProfilePolicyContext> profile_policy_context_; | 207 scoped_ptr<policy::ProfilePolicyContext> profile_policy_context_; |
206 scoped_ptr<NetPrefObserver> net_pref_observer_; | 208 scoped_ptr<NetPrefObserver> net_pref_observer_; |
207 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; | 209 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |
208 scoped_ptr<TemplateURLModel> template_url_model_; | 210 scoped_ptr<TemplateURLModel> template_url_model_; |
209 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 211 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
212 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | |
tony
2011/02/14 23:40:07
What is the expected lifetime of this object? It
koz (OOO until 15th September)
2011/02/15 03:37:27
I made this a scoped_refptr because it is referenc
| |
210 scoped_refptr<WebResourceService> web_resource_service_; | 213 scoped_refptr<WebResourceService> web_resource_service_; |
211 scoped_ptr<NTPResourceCache> ntp_resource_cache_; | 214 scoped_ptr<NTPResourceCache> ntp_resource_cache_; |
212 | 215 |
213 scoped_ptr<TokenService> token_service_; | 216 scoped_ptr<TokenService> token_service_; |
214 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; | 217 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; |
215 scoped_ptr<ProfileSyncService> sync_service_; | 218 scoped_ptr<ProfileSyncService> sync_service_; |
216 scoped_refptr<CloudPrintProxyService> cloud_print_proxy_service_; | 219 scoped_refptr<CloudPrintProxyService> cloud_print_proxy_service_; |
217 | 220 |
218 ProfileIOData::Handle io_data_; | 221 ProfileIOData::Handle io_data_; |
219 | 222 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 #endif | 306 #endif |
304 | 307 |
305 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 308 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
306 | 309 |
307 scoped_refptr<PrerenderManager> prerender_manager_; | 310 scoped_refptr<PrerenderManager> prerender_manager_; |
308 | 311 |
309 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 312 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
310 }; | 313 }; |
311 | 314 |
312 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 315 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |