Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chrome/browser/browser_process_platform_part_aurawin.cc

Issue 14698027: Move winaura specific methods and members from chrome/browser/browser_process.h to chrome/browser/b… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix includes in testing_browser_process_platform_part.h Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 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 #include "chrome/browser/browser_process_impl.h" 4
5 #include "chrome/browser/browser_process_platform_part_aurawin.h"
5 6
6 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h"
7 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
8 10
9 #if defined(USE_AURA) 11 BrowserProcessPlatformPart::BrowserProcessPlatformPart() {
10 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h"
11 #endif
12
13 void BrowserProcessImpl::PlatformSpecificCommandLineProcessing(
14 const CommandLine& command_line) {
15 #if defined(USE_AURA)
16 PerformInitForWindowsAura(command_line);
17 #endif
18 } 12 }
19 13
20 #if defined(USE_AURA) 14 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {
21 void BrowserProcessImpl::OnMetroViewerProcessTerminated() {
22 metro_viewer_process_host_.reset(NULL);
23 } 15 }
24 16
25 void BrowserProcessImpl::PerformInitForWindowsAura( 17 void BrowserProcessPlatformPart::PlatformSpecificCommandLineProcessing(
26 const CommandLine& command_line) { 18 const CommandLine& command_line) {
27 if (command_line.HasSwitch(switches::kViewerConnection) && 19 if (command_line.HasSwitch(switches::kViewerConnection) &&
28 !metro_viewer_process_host_.get()) { 20 !metro_viewer_process_host_.get()) {
29 // Tell the metro viewer process host to connect to the given IPC channel. 21 // Tell the metro viewer process host to connect to the given IPC channel.
30 metro_viewer_process_host_.reset( 22 metro_viewer_process_host_.reset(
31 new MetroViewerProcessHost( 23 new MetroViewerProcessHost(
32 command_line.GetSwitchValueASCII(switches::kViewerConnection))); 24 command_line.GetSwitchValueASCII(switches::kViewerConnection)));
33 } 25 }
34 } 26 }
35 #endif 27
28 void BrowserProcessPlatformPart::StartTearDown() {
29 }
30
31 void BrowserProcessPlatformPart::OnMetroViewerProcessTerminated() {
32 metro_viewer_process_host_.reset(NULL);
33 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_platform_part_aurawin.h ('k') | chrome/browser/browser_process_platform_part_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698