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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 #endif | 109 #endif |
110 | 110 |
111 virtual ChromeNetLog* net_log(); | 111 virtual ChromeNetLog* net_log(); |
112 | 112 |
113 virtual prerender::PrerenderTracker* prerender_tracker(); | 113 virtual prerender::PrerenderTracker* prerender_tracker(); |
114 | 114 |
115 #if defined(IPC_MESSAGE_LOG_ENABLED) | 115 #if defined(IPC_MESSAGE_LOG_ENABLED) |
116 virtual void SetIPCLoggingEnabled(bool enable); | 116 virtual void SetIPCLoggingEnabled(bool enable); |
117 #endif | 117 #endif |
118 | 118 |
| 119 virtual MHTMLGenerationManager* mhtml_generation_manager(); |
| 120 |
119 private: | 121 private: |
120 void ClearLocalState(const FilePath& profile_path); | 122 void ClearLocalState(const FilePath& profile_path); |
121 bool ShouldClearLocalState(FilePath* profile_path); | 123 bool ShouldClearLocalState(FilePath* profile_path); |
122 | 124 |
123 void CreateResourceDispatcherHost(); | 125 void CreateResourceDispatcherHost(); |
124 void CreateMetricsService(); | 126 void CreateMetricsService(); |
125 | 127 |
126 void CreateIOThread(); | 128 void CreateIOThread(); |
127 static void CleanupOnIOThread(); | 129 static void CleanupOnIOThread(); |
128 | 130 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Ordered before resource_dispatcher_host_delegate_ due to destruction | 287 // Ordered before resource_dispatcher_host_delegate_ due to destruction |
286 // ordering. | 288 // ordering. |
287 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 289 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
288 | 290 |
289 scoped_ptr<ChromeResourceDispatcherHostDelegate> | 291 scoped_ptr<ChromeResourceDispatcherHostDelegate> |
290 resource_dispatcher_host_delegate_; | 292 resource_dispatcher_host_delegate_; |
291 | 293 |
292 NotificationRegistrar notification_registrar_; | 294 NotificationRegistrar notification_registrar_; |
293 scoped_refptr<PluginDataRemover> plugin_data_remover_; | 295 scoped_refptr<PluginDataRemover> plugin_data_remover_; |
294 | 296 |
| 297 scoped_refptr<MHTMLGenerationManager> mhtml_generation_manager_; |
| 298 |
295 // Monitors the state of the 'DisablePluginFinder' policy. | 299 // Monitors the state of the 'DisablePluginFinder' policy. |
296 BooleanPrefMember plugin_finder_disabled_pref_; | 300 BooleanPrefMember plugin_finder_disabled_pref_; |
297 | 301 |
298 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 302 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
299 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; | 303 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; |
300 | 304 |
301 // Gets called by autoupdate timer to see if browser needs restart and can be | 305 // Gets called by autoupdate timer to see if browser needs restart and can be |
302 // restarted, and if that's the case, restarts the browser. | 306 // restarted, and if that's the case, restarts the browser. |
303 void OnAutoupdateTimer(); | 307 void OnAutoupdateTimer(); |
304 bool CanAutorestartForUpdate() const; | 308 bool CanAutorestartForUpdate() const; |
305 void RestartPersistentInstance(); | 309 void RestartPersistentInstance(); |
306 #endif // defined(OS_WIN) || defined(OS_LINUX) | 310 #endif // defined(OS_WIN) || defined(OS_LINUX) |
307 | 311 |
308 #if defined(OS_CHROMEOS) | 312 #if defined(OS_CHROMEOS) |
309 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 313 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
310 chromeos_proxy_config_service_impl_; | 314 chromeos_proxy_config_service_impl_; |
311 #endif | 315 #endif |
312 | 316 |
313 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 317 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
314 }; | 318 }; |
315 | 319 |
316 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 320 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |