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_ |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace policy { | 39 namespace policy { |
40 class BrowserPolicyConnector; | 40 class BrowserPolicyConnector; |
41 class PolicyService; | 41 class PolicyService; |
42 }; | 42 }; |
43 | 43 |
44 #if defined(OS_WIN) && defined(USE_AURA) | 44 #if defined(OS_WIN) && defined(USE_AURA) |
45 class MetroViewerProcessHost; | 45 class MetroViewerProcessHost; |
46 #endif | 46 #endif |
47 | 47 |
| 48 #if defined(OS_MACOSX) |
| 49 class AppShimHostController; |
| 50 #endif |
| 51 |
48 // Real implementation of BrowserProcess that creates and returns the services. | 52 // Real implementation of BrowserProcess that creates and returns the services. |
49 class BrowserProcessImpl : public BrowserProcess, | 53 class BrowserProcessImpl : public BrowserProcess, |
50 public base::NonThreadSafe { | 54 public base::NonThreadSafe { |
51 public: | 55 public: |
52 // |local_state_task_runner| must be a shutdown-blocking task runner. | 56 // |local_state_task_runner| must be a shutdown-blocking task runner. |
53 BrowserProcessImpl(base::SequencedTaskRunner* local_state_task_runner, | 57 BrowserProcessImpl(base::SequencedTaskRunner* local_state_task_runner, |
54 const CommandLine& command_line); | 58 const CommandLine& command_line); |
55 virtual ~BrowserProcessImpl(); | 59 virtual ~BrowserProcessImpl(); |
56 | 60 |
57 // Called before the browser threads are created. | 61 // Called before the browser threads are created. |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 #endif | 296 #endif |
293 | 297 |
294 #if defined(OS_WIN) && defined(USE_AURA) | 298 #if defined(OS_WIN) && defined(USE_AURA) |
295 void PerformInitForWindowsAura(const CommandLine& command_line); | 299 void PerformInitForWindowsAura(const CommandLine& command_line); |
296 | 300 |
297 // Hosts the channel for the Windows 8 metro viewer process which runs in | 301 // Hosts the channel for the Windows 8 metro viewer process which runs in |
298 // the ASH environment. | 302 // the ASH environment. |
299 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; | 303 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; |
300 #endif | 304 #endif |
301 | 305 |
| 306 #if defined(OS_MACOSX) |
| 307 // Hosts the IPC channel factory that App Shims connect to on Mac. |
| 308 scoped_ptr<AppShimHostController> app_shim_host_controller_; |
| 309 #endif |
| 310 |
302 // TODO(eroman): Remove this when done debugging 113031. This tracks | 311 // TODO(eroman): Remove this when done debugging 113031. This tracks |
303 // the callstack which released the final module reference count. | 312 // the callstack which released the final module reference count. |
304 base::debug::StackTrace release_last_reference_callstack_; | 313 base::debug::StackTrace release_last_reference_callstack_; |
305 | 314 |
306 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 315 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
307 }; | 316 }; |
308 | 317 |
309 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 318 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |