| 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 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/prefs/pref_member.h" | 23 #include "chrome/browser/prefs/pref_member.h" |
| 24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
| 25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
| 26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
| 27 #include "ipc/ipc_message.h" | 27 #include "ipc/ipc_message.h" |
| 28 | 28 |
| 29 class BrowserOnlineStateObserver; | 29 class BrowserOnlineStateObserver; |
| 30 class ChromeNetLog; | 30 class ChromeNetLog; |
| 31 class ChromeResourceDispatcherHostDelegate; | 31 class ChromeResourceDispatcherHostDelegate; |
| 32 class CommandLine; | 32 class CommandLine; |
| 33 class ChromeFrameFriendOfBrowserProcessImpl; // TODO(joi): Remove | |
| 34 class RemoteDebuggingServer; | 33 class RemoteDebuggingServer; |
| 35 class TabCloseableStateWatcher; | 34 class TabCloseableStateWatcher; |
| 36 | 35 |
| 37 namespace policy { | 36 namespace policy { |
| 38 class BrowserPolicyConnector; | 37 class BrowserPolicyConnector; |
| 39 }; | 38 }; |
| 40 | 39 |
| 41 // Real implementation of BrowserProcess that creates and returns the services. | 40 // Real implementation of BrowserProcess that creates and returns the services. |
| 42 class BrowserProcessImpl : public BrowserProcess, | 41 class BrowserProcessImpl : public BrowserProcess, |
| 43 public base::NonThreadSafe, | 42 public base::NonThreadSafe, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual void StartAutoupdateTimer() OVERRIDE; | 120 virtual void StartAutoupdateTimer() OVERRIDE; |
| 122 #endif | 121 #endif |
| 123 | 122 |
| 124 virtual ChromeNetLog* net_log() OVERRIDE; | 123 virtual ChromeNetLog* net_log() OVERRIDE; |
| 125 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 124 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
| 126 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; | 125 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; |
| 127 virtual ComponentUpdateService* component_updater() OVERRIDE; | 126 virtual ComponentUpdateService* component_updater() OVERRIDE; |
| 128 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 127 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
| 129 | 128 |
| 130 private: | 129 private: |
| 131 // TODO(joi): Remove. Temporary hack to get at CreateIOThreadState. | |
| 132 friend class ChromeFrameFriendOfBrowserProcessImpl; | |
| 133 | |
| 134 // Must be called right before the IO thread is started. | 130 // Must be called right before the IO thread is started. |
| 135 void CreateIOThreadState(); | 131 void CreateIOThreadState(); |
| 136 | 132 |
| 137 void CreateResourceDispatcherHost(); | 133 void CreateResourceDispatcherHost(); |
| 138 void CreateMetricsService(); | 134 void CreateMetricsService(); |
| 139 | 135 |
| 140 void CreateWatchdogThread(); | 136 void CreateWatchdogThread(); |
| 141 #if defined(OS_CHROMEOS) | 137 #if defined(OS_CHROMEOS) |
| 142 void InitializeWebSocketProxyThread(); | 138 void InitializeWebSocketProxyThread(); |
| 143 #endif | 139 #endif |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 #if !defined(OS_CHROMEOS) | 279 #if !defined(OS_CHROMEOS) |
| 284 scoped_ptr<ComponentUpdateService> component_updater_; | 280 scoped_ptr<ComponentUpdateService> component_updater_; |
| 285 | 281 |
| 286 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; | 282 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; |
| 287 #endif | 283 #endif |
| 288 | 284 |
| 289 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 285 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 290 }; | 286 }; |
| 291 | 287 |
| 292 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 288 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |