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

Side by Side Diff: chrome/browser/browser_process_impl.h

Issue 6966017: Remove a chrome dependency by removing Prerender from ResourceDispatcherHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passing tracker through. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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 16 matching lines...) Expand all
27 #include "content/common/notification_registrar.h" 27 #include "content/common/notification_registrar.h"
28 #include "ipc/ipc_message.h" 28 #include "ipc/ipc_message.h"
29 29
30 class ChromeNetLog; 30 class ChromeNetLog;
31 class CommandLine; 31 class CommandLine;
32 class DevToolsHttpProtocolHandler; 32 class DevToolsHttpProtocolHandler;
33 class DevToolsProtocolHandler; 33 class DevToolsProtocolHandler;
34 class FilePath; 34 class FilePath;
35 class NotificationService; 35 class NotificationService;
36 class PluginDataRemover; 36 class PluginDataRemover;
37 class ChromeResourceDispatcherHostObserver;
mmenke 2011/05/24 17:56:22 nit: This should be in alphabetical order.
dominich 2011/05/24 18:01:47 Done.
37 class TabCloseableStateWatcher; 38 class TabCloseableStateWatcher;
38 39
39 // Real implementation of BrowserProcess that creates and returns the services. 40 // Real implementation of BrowserProcess that creates and returns the services.
40 class BrowserProcessImpl : public BrowserProcess, 41 class BrowserProcessImpl : public BrowserProcess,
41 public base::NonThreadSafe, 42 public base::NonThreadSafe,
42 public NotificationObserver { 43 public NotificationObserver {
43 public: 44 public:
44 explicit BrowserProcessImpl(const CommandLine& command_line); 45 explicit BrowserProcessImpl(const CommandLine& command_line);
45 virtual ~BrowserProcessImpl(); 46 virtual ~BrowserProcessImpl();
46 47
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual void Observe(NotificationType type, 105 virtual void Observe(NotificationType type,
105 const NotificationSource& source, 106 const NotificationSource& source,
106 const NotificationDetails& details); 107 const NotificationDetails& details);
107 108
108 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 109 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
109 virtual void StartAutoupdateTimer(); 110 virtual void StartAutoupdateTimer();
110 #endif 111 #endif
111 112
112 virtual ChromeNetLog* net_log(); 113 virtual ChromeNetLog* net_log();
113 114
115 virtual prerender::PrerenderTracker* prerender_tracker();
116
114 #if defined(IPC_MESSAGE_LOG_ENABLED) 117 #if defined(IPC_MESSAGE_LOG_ENABLED)
115 virtual void SetIPCLoggingEnabled(bool enable); 118 virtual void SetIPCLoggingEnabled(bool enable);
116 #endif 119 #endif
117 120
118 private: 121 private:
119 void ClearLocalState(const FilePath& profile_path); 122 void ClearLocalState(const FilePath& profile_path);
120 bool ShouldClearLocalState(FilePath* profile_path); 123 bool ShouldClearLocalState(FilePath* profile_path);
121 124
122 void CreateResourceDispatcherHost(); 125 void CreateResourceDispatcherHost();
123 void CreateMetricsService(); 126 void CreateMetricsService();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // An event that notifies when we are shutting-down. 272 // An event that notifies when we are shutting-down.
270 scoped_ptr<base::WaitableEvent> shutdown_event_; 273 scoped_ptr<base::WaitableEvent> shutdown_event_;
271 274
272 // Ensures that the observers of plugin/print disable/enable state 275 // Ensures that the observers of plugin/print disable/enable state
273 // notifications are properly added and removed. 276 // notifications are properly added and removed.
274 PrefChangeRegistrar pref_change_registrar_; 277 PrefChangeRegistrar pref_change_registrar_;
275 278
276 // Lives here so can safely log events on shutdown. 279 // Lives here so can safely log events on shutdown.
277 scoped_ptr<ChromeNetLog> net_log_; 280 scoped_ptr<ChromeNetLog> net_log_;
278 281
282 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
cbentzel 2011/05/24 17:13:54 You may want to comment that prerender_tracker_ ne
dominich 2011/05/24 18:01:47 Done.
283
284 scoped_ptr<ChromeResourceDispatcherHostObserver>
285 resource_dispatcher_host_observer_;
286
279 NotificationRegistrar notification_registrar_; 287 NotificationRegistrar notification_registrar_;
280 scoped_refptr<PluginDataRemover> plugin_data_remover_; 288 scoped_refptr<PluginDataRemover> plugin_data_remover_;
281 289
282 // Monitors the state of the 'DisablePluginFinder' policy. 290 // Monitors the state of the 'DisablePluginFinder' policy.
283 BooleanPrefMember plugin_finder_disabled_pref_; 291 BooleanPrefMember plugin_finder_disabled_pref_;
284 292
285 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 293 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
286 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; 294 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_;
287 295
288 // Gets called by autoupdate timer to see if browser needs restart and can be 296 // Gets called by autoupdate timer to see if browser needs restart and can be
289 // restarted, and if that's the case, restarts the browser. 297 // restarted, and if that's the case, restarts the browser.
290 void OnAutoupdateTimer(); 298 void OnAutoupdateTimer();
291 bool CanAutorestartForUpdate() const; 299 bool CanAutorestartForUpdate() const;
292 void RestartPersistentInstance(); 300 void RestartPersistentInstance();
293 #endif // defined(OS_WIN) || defined(OS_LINUX) 301 #endif // defined(OS_WIN) || defined(OS_LINUX)
294 302
295 #if defined(OS_CHROMEOS) 303 #if defined(OS_CHROMEOS)
296 scoped_refptr<chromeos::ProxyConfigServiceImpl> 304 scoped_refptr<chromeos::ProxyConfigServiceImpl>
297 chromeos_proxy_config_service_impl_; 305 chromeos_proxy_config_service_impl_;
298 #endif 306 #endif
299 307
300 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 308 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
301 }; 309 };
302 310
303 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 311 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698