OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ |
11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/debug/stack_trace.h" | 16 #include "base/debug/stack_trace.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/prefs/pref_change_registrar.h" | 19 #include "base/prefs/pref_change_registrar.h" |
20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
21 #include "base/timer.h" | 21 #include "base/timer.h" |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 | 23 |
24 class ChromeNetLog; | 24 class ChromeNetLog; |
25 class ChromeResourceDispatcherHostDelegate; | 25 class ChromeResourceDispatcherHostDelegate; |
26 class CommandLine; | 26 class CommandLine; |
27 class RemoteDebuggingServer; | 27 class RemoteDebuggingServer; |
28 class PrefRegistrySimple; | 28 class PrefRegistrySimple; |
29 class PromoResourceService; | 29 class PromoResourceService; |
| 30 class WebRtcLogUploadManager; |
30 | 31 |
31 #if defined(ENABLE_PLUGIN_INSTALLATION) | 32 #if defined(ENABLE_PLUGIN_INSTALLATION) |
32 class PluginsResourceService; | 33 class PluginsResourceService; |
33 #endif | 34 #endif |
34 | 35 |
35 namespace base { | 36 namespace base { |
36 class SequencedTaskRunner; | 37 class SequencedTaskRunner; |
37 } | 38 } |
38 | 39 |
39 namespace policy { | 40 namespace policy { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 133 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
133 virtual ComponentUpdateService* component_updater() OVERRIDE; | 134 virtual ComponentUpdateService* component_updater() OVERRIDE; |
134 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 135 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
135 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; | 136 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; |
136 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; | 137 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; |
137 virtual chrome::MediaFileSystemRegistry* | 138 virtual chrome::MediaFileSystemRegistry* |
138 media_file_system_registry() OVERRIDE; | 139 media_file_system_registry() OVERRIDE; |
139 virtual void PlatformSpecificCommandLineProcessing( | 140 virtual void PlatformSpecificCommandLineProcessing( |
140 const CommandLine& command_line) OVERRIDE; | 141 const CommandLine& command_line) OVERRIDE; |
141 virtual bool created_local_state() const OVERRIDE; | 142 virtual bool created_local_state() const OVERRIDE; |
| 143 virtual WebRtcLogUploadManager* webrtc_log_upload_manager() OVERRIDE; |
142 | 144 |
143 static void RegisterPrefs(PrefRegistrySimple* registry); | 145 static void RegisterPrefs(PrefRegistrySimple* registry); |
144 | 146 |
145 private: | 147 private: |
146 void CreateMetricsService(); | 148 void CreateMetricsService(); |
147 void CreateWatchdogThread(); | 149 void CreateWatchdogThread(); |
148 #if defined(OS_CHROMEOS) | 150 #if defined(OS_CHROMEOS) |
149 void InitializeWebSocketProxyThread(); | 151 void InitializeWebSocketProxyThread(); |
150 #endif | 152 #endif |
151 void CreateProfileManager(); | 153 void CreateProfileManager(); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 311 |
310 #if defined(OS_MACOSX) | 312 #if defined(OS_MACOSX) |
311 // Hosts the IPC channel factory that App Shims connect to on Mac. | 313 // Hosts the IPC channel factory that App Shims connect to on Mac. |
312 scoped_ptr<AppShimHostManager> app_shim_host_manager_; | 314 scoped_ptr<AppShimHostManager> app_shim_host_manager_; |
313 #endif | 315 #endif |
314 | 316 |
315 // TODO(eroman): Remove this when done debugging 113031. This tracks | 317 // TODO(eroman): Remove this when done debugging 113031. This tracks |
316 // the callstack which released the final module reference count. | 318 // the callstack which released the final module reference count. |
317 base::debug::StackTrace release_last_reference_callstack_; | 319 base::debug::StackTrace release_last_reference_callstack_; |
318 | 320 |
| 321 #if defined(ENABLE_WEBRTC) |
| 322 scoped_ptr<WebRtcLogUploadManager> webrtc_log_upload_manager_; |
| 323 #endif |
| 324 |
319 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 325 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
320 }; | 326 }; |
321 | 327 |
322 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 328 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |