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