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