OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_ | |
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/macros.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "chrome/browser/browser_process_platform_part_base.h" | |
12 #include "content/public/browser/notification_observer.h" | |
13 #include "content/public/browser/notification_registrar.h" | |
14 | |
15 class ChromeMetroViewerProcessHost; | |
16 | |
17 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, | |
18 public content::NotificationObserver { | |
19 public: | |
20 BrowserProcessPlatformPart(); | |
21 ~BrowserProcessPlatformPart() override; | |
22 | |
23 // Invoked when the ASH metro viewer process on Windows 8 exits. | |
24 void OnMetroViewerProcessTerminated(); | |
25 | |
26 // Overridden from BrowserProcessPlatformPartBase: | |
27 void PlatformSpecificCommandLineProcessing( | |
28 const base::CommandLine& command_line) override; | |
29 | |
30 // content::NotificationObserver method: | |
31 void Observe(int type, | |
32 const content::NotificationSource& source, | |
33 const content::NotificationDetails& details) override; | |
34 | |
35 private: | |
36 // Hosts the channel for the Windows 8 metro viewer process which runs in | |
37 // the ASH environment. | |
38 scoped_ptr<ChromeMetroViewerProcessHost> metro_viewer_process_host_; | |
39 | |
40 content::NotificationRegistrar registrar_; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | |
43 }; | |
44 | |
45 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_ | |
OLD | NEW |