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 #include "chrome/browser/browser_process_platform_part_aurawin.h" | 5 #include "chrome/browser/browser_process_platform_part_aurawin.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h" | 8 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 | 10 |
11 BrowserProcessPlatformPart::BrowserProcessPlatformPart() { | 11 BrowserProcessPlatformPart::BrowserProcessPlatformPart() { |
12 } | 12 } |
13 | 13 |
14 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { | 14 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { |
15 } | 15 } |
16 | 16 |
| 17 void BrowserProcessPlatformPart::OnMetroViewerProcessTerminated() { |
| 18 metro_viewer_process_host_.reset(NULL); |
| 19 } |
| 20 |
17 void BrowserProcessPlatformPart::PlatformSpecificCommandLineProcessing( | 21 void BrowserProcessPlatformPart::PlatformSpecificCommandLineProcessing( |
18 const CommandLine& command_line) { | 22 const CommandLine& command_line) { |
19 if (command_line.HasSwitch(switches::kViewerConnection) && | 23 if (command_line.HasSwitch(switches::kViewerConnection) && |
20 !metro_viewer_process_host_.get()) { | 24 !metro_viewer_process_host_.get()) { |
21 // Tell the metro viewer process host to connect to the given IPC channel. | 25 // Tell the metro viewer process host to connect to the given IPC channel. |
22 metro_viewer_process_host_.reset( | 26 metro_viewer_process_host_.reset( |
23 new MetroViewerProcessHost( | 27 new MetroViewerProcessHost( |
24 command_line.GetSwitchValueASCII(switches::kViewerConnection))); | 28 command_line.GetSwitchValueASCII(switches::kViewerConnection))); |
25 } | 29 } |
26 } | 30 } |
27 | |
28 void BrowserProcessPlatformPart::StartTearDown() { | |
29 } | |
30 | |
31 void BrowserProcessPlatformPart::OnMetroViewerProcessTerminated() { | |
32 metro_viewer_process_host_.reset(NULL); | |
33 } | |
OLD | NEW |