OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_WINAURA_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_WINAURA_H_ |
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_WINAURA_H_ | 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_WINAURA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 | 10 |
11 class CommandLine; | 11 class CommandLine; |
12 class MetroViewerProcessHost; | 12 class MetroViewerProcessHost; |
13 | 13 |
14 class BrowserProcessPlatformPart { | 14 class BrowserProcessPlatformPart { |
15 public: | 15 public: |
16 BrowserProcessPlatformPart(); | 16 BrowserProcessPlatformPart(); |
17 virtual ~BrowserProcessPlatformPart(); | 17 virtual ~BrowserProcessPlatformPart(); |
18 | 18 |
19 // Called after creating the process singleton or when another chrome | 19 // Called after creating the process singleton or when another chrome |
20 // rendez-vous with this one. | 20 // rendez-vous with this one. |
21 virtual void PlatformSpecificCommandLineProcessing( | 21 virtual void PlatformSpecificCommandLineProcessing( |
22 const CommandLine& command_line); | 22 const CommandLine& command_line); |
23 | 23 |
24 // Called from BrowserProcessImpl::StartTearDown(). | 24 // Called from BrowserProcessImpl::StartTearDown(). |
25 virtual void StartTearDown(); | 25 virtual void StartTearDown(); |
26 | 26 |
| 27 // Invoked when the ASH metro viewer process on Windows 8 exits. |
27 void OnMetroViewerProcessTerminated(); | 28 void OnMetroViewerProcessTerminated(); |
28 | 29 |
| 30 // Terminates the metro viewer process if there is one. |
| 31 void TerminateMetroViewerProcess(); |
| 32 |
29 private: | 33 private: |
30 // Hosts the channel for the Windows 8 metro viewer process which runs in | 34 // Hosts the channel for the Windows 8 metro viewer process which runs in |
31 // the ASH environment. | 35 // the ASH environment. |
32 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; | 36 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; |
33 | 37 |
34 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 38 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
35 }; | 39 }; |
36 | 40 |
37 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_WINAURA_H_ | 41 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_WINAURA_H_ |
OLD | NEW |