| 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 virtual ChromeNetLog* net_log(); | 112 virtual ChromeNetLog* net_log(); |
| 113 | 113 |
| 114 virtual prerender::PrerenderTracker* prerender_tracker(); | 114 virtual prerender::PrerenderTracker* prerender_tracker(); |
| 115 | 115 |
| 116 #if defined(IPC_MESSAGE_LOG_ENABLED) | 116 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 117 virtual void SetIPCLoggingEnabled(bool enable); | 117 virtual void SetIPCLoggingEnabled(bool enable); |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 virtual MHTMLGenerationManager* mhtml_generation_manager(); |
| 121 |
| 120 private: | 122 private: |
| 121 void ClearLocalState(const FilePath& profile_path); | 123 void ClearLocalState(const FilePath& profile_path); |
| 122 bool ShouldClearLocalState(FilePath* profile_path); | 124 bool ShouldClearLocalState(FilePath* profile_path); |
| 123 | 125 |
| 124 void CreateResourceDispatcherHost(); | 126 void CreateResourceDispatcherHost(); |
| 125 void CreateMetricsService(); | 127 void CreateMetricsService(); |
| 126 | 128 |
| 127 void CreateIOThread(); | 129 void CreateIOThread(); |
| 128 static void CleanupOnIOThread(); | 130 static void CleanupOnIOThread(); |
| 129 | 131 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 // Ordered before resource_dispatcher_host_delegate_ due to destruction | 291 // Ordered before resource_dispatcher_host_delegate_ due to destruction |
| 290 // ordering. | 292 // ordering. |
| 291 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 293 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
| 292 | 294 |
| 293 scoped_ptr<ChromeResourceDispatcherHostDelegate> | 295 scoped_ptr<ChromeResourceDispatcherHostDelegate> |
| 294 resource_dispatcher_host_delegate_; | 296 resource_dispatcher_host_delegate_; |
| 295 | 297 |
| 296 NotificationRegistrar notification_registrar_; | 298 NotificationRegistrar notification_registrar_; |
| 297 scoped_refptr<PluginDataRemover> plugin_data_remover_; | 299 scoped_refptr<PluginDataRemover> plugin_data_remover_; |
| 298 | 300 |
| 301 scoped_refptr<MHTMLGenerationManager> mhtml_generation_manager_; |
| 302 |
| 299 // Monitors the state of the 'DisablePluginFinder' policy. | 303 // Monitors the state of the 'DisablePluginFinder' policy. |
| 300 BooleanPrefMember plugin_finder_disabled_pref_; | 304 BooleanPrefMember plugin_finder_disabled_pref_; |
| 301 | 305 |
| 302 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 306 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 303 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; | 307 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; |
| 304 | 308 |
| 305 // Gets called by autoupdate timer to see if browser needs restart and can be | 309 // Gets called by autoupdate timer to see if browser needs restart and can be |
| 306 // restarted, and if that's the case, restarts the browser. | 310 // restarted, and if that's the case, restarts the browser. |
| 307 void OnAutoupdateTimer(); | 311 void OnAutoupdateTimer(); |
| 308 bool CanAutorestartForUpdate() const; | 312 bool CanAutorestartForUpdate() const; |
| 309 void RestartPersistentInstance(); | 313 void RestartPersistentInstance(); |
| 310 #endif // defined(OS_WIN) || defined(OS_LINUX) | 314 #endif // defined(OS_WIN) || defined(OS_LINUX) |
| 311 | 315 |
| 312 #if defined(OS_CHROMEOS) | 316 #if defined(OS_CHROMEOS) |
| 313 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 317 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
| 314 chromeos_proxy_config_service_impl_; | 318 chromeos_proxy_config_service_impl_; |
| 315 #endif | 319 #endif |
| 316 | 320 |
| 317 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 321 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 318 }; | 322 }; |
| 319 | 323 |
| 320 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 324 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |