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

Side by Side Diff: remoting/host/daemon_process_win.cc

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | remoting/host/desktop_process_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/host/daemon_process.h" 5 #include "remoting/host/daemon_process.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return scoped_ptr<DesktopSession>(new DesktopSessionWin( 136 return scoped_ptr<DesktopSession>(new DesktopSessionWin(
137 caller_task_runner(), io_task_runner(), this, terminal_id, 137 caller_task_runner(), io_task_runner(), this, terminal_id,
138 HostService::GetInstance())); 138 HostService::GetInstance()));
139 } 139 }
140 140
141 void DaemonProcessWin::LaunchNetworkProcess() { 141 void DaemonProcessWin::LaunchNetworkProcess() {
142 DCHECK(caller_task_runner()->BelongsToCurrentThread()); 142 DCHECK(caller_task_runner()->BelongsToCurrentThread());
143 DCHECK(!network_launcher_); 143 DCHECK(!network_launcher_);
144 144
145 // Construct the host binary name. 145 // Construct the host binary name.
146 FilePath host_binary; 146 base::FilePath host_binary;
147 if (!GetInstalledBinaryPath(kHostBinaryName, &host_binary)) { 147 if (!GetInstalledBinaryPath(kHostBinaryName, &host_binary)) {
148 Stop(); 148 Stop();
149 return; 149 return;
150 } 150 }
151 151
152 scoped_ptr<UnprivilegedProcessDelegate> delegate( 152 scoped_ptr<UnprivilegedProcessDelegate> delegate(
153 new UnprivilegedProcessDelegate(caller_task_runner(), io_task_runner(), 153 new UnprivilegedProcessDelegate(caller_task_runner(), io_task_runner(),
154 host_binary)); 154 host_binary));
155 network_launcher_.reset(new WorkerProcessLauncher( 155 network_launcher_.reset(new WorkerProcessLauncher(
156 caller_task_runner(), delegate.Pass(), this)); 156 caller_task_runner(), delegate.Pass(), this));
157 } 157 }
158 158
159 scoped_ptr<DaemonProcess> DaemonProcess::Create( 159 scoped_ptr<DaemonProcess> DaemonProcess::Create(
160 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, 160 scoped_refptr<AutoThreadTaskRunner> caller_task_runner,
161 scoped_refptr<AutoThreadTaskRunner> io_task_runner, 161 scoped_refptr<AutoThreadTaskRunner> io_task_runner,
162 const base::Closure& stopped_callback) { 162 const base::Closure& stopped_callback) {
163 scoped_ptr<DaemonProcessWin> daemon_process( 163 scoped_ptr<DaemonProcessWin> daemon_process(
164 new DaemonProcessWin(caller_task_runner, io_task_runner, 164 new DaemonProcessWin(caller_task_runner, io_task_runner,
165 stopped_callback)); 165 stopped_callback));
166 daemon_process->Initialize(); 166 daemon_process->Initialize();
167 return daemon_process.PassAs<DaemonProcess>(); 167 return daemon_process.PassAs<DaemonProcess>();
168 } 168 }
169 169
170 } // namespace remoting 170 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | remoting/host/desktop_process_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698