Chromium Code Reviews| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 289 #endif | 293 #endif |
| 290 | 294 |
| 291 #if defined(OS_WIN) && defined(USE_AURA) | 295 #if defined(OS_WIN) && defined(USE_AURA) |
| 292 void PerformInitForWindowsAura(const CommandLine& command_line); | 296 void PerformInitForWindowsAura(const CommandLine& command_line); |
| 293 | 297 |
| 294 // Hosts the channel for the Windows 8 metro viewer process which runs in | 298 // Hosts the channel for the Windows 8 metro viewer process which runs in |
| 295 // the ASH environment. | 299 // the ASH environment. |
| 296 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; | 300 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; |
| 297 #endif | 301 #endif |
| 298 | 302 |
| 303 #if defined(OS_MACOSX) | |
| 304 scoped_ptr<AppShimHostController> app_shim_host_controller_; | |
|
jeremy
2013/03/11 06:49:59
Comment.
jeremya
2013/03/11 08:42:26
Done, though I'm not sure how much info I should a
| |
| 305 #endif | |
| 306 | |
| 299 // TODO(eroman): Remove this when done debugging 113031. This tracks | 307 // TODO(eroman): Remove this when done debugging 113031. This tracks |
| 300 // the callstack which released the final module reference count. | 308 // the callstack which released the final module reference count. |
| 301 base::debug::StackTrace release_last_reference_callstack_; | 309 base::debug::StackTrace release_last_reference_callstack_; |
| 302 | 310 |
| 303 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 311 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 304 }; | 312 }; |
| 305 | 313 |
| 306 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 314 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |