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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual void StartAutoupdateTimer() OVERRIDE; | 115 virtual void StartAutoupdateTimer() OVERRIDE; |
117 #endif | 116 #endif |
118 | 117 |
119 virtual ChromeNetLog* net_log() OVERRIDE; | 118 virtual ChromeNetLog* net_log() OVERRIDE; |
120 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 119 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
121 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; | 120 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; |
122 virtual ComponentUpdateService* component_updater() OVERRIDE; | 121 virtual ComponentUpdateService* component_updater() OVERRIDE; |
123 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 122 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
124 | 123 |
125 private: | 124 private: |
126 // TODO(joi): Remove. Temporary hack to get at CreateIOThreadState. | |
127 friend class ChromeFrameFriendOfBrowserProcessImpl; | |
128 | |
129 // Must be called right before the IO thread is started. | 125 // Must be called right before the IO thread is started. |
130 void CreateIOThreadState(); | 126 void CreateIOThreadState(); |
131 | 127 |
132 void CreateResourceDispatcherHost(); | 128 void CreateResourceDispatcherHost(); |
133 void CreateMetricsService(); | 129 void CreateMetricsService(); |
134 | 130 |
135 void CreateWatchdogThread(); | 131 void CreateWatchdogThread(); |
136 #if defined(OS_CHROMEOS) | 132 #if defined(OS_CHROMEOS) |
137 void InitializeWebSocketProxyThread(); | 133 void InitializeWebSocketProxyThread(); |
138 #endif | 134 #endif |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 #if !defined(OS_CHROMEOS) | 274 #if !defined(OS_CHROMEOS) |
279 scoped_ptr<ComponentUpdateService> component_updater_; | 275 scoped_ptr<ComponentUpdateService> component_updater_; |
280 | 276 |
281 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; | 277 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; |
282 #endif | 278 #endif |
283 | 279 |
284 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 280 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
285 }; | 281 }; |
286 | 282 |
287 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 283 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |