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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.h

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
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 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 5 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "remoting/host/win/worker_process_launcher.h" 11 #include "remoting/host/win/worker_process_launcher.h"
12 12
13 namespace base {
13 class FilePath; 14 class FilePath;
14
15 namespace base {
16 class SingleThreadTaskRunner; 15 class SingleThreadTaskRunner;
17 } // namespace base 16 } // namespace base
18 17
19 namespace IPC { 18 namespace IPC {
20 class Listener; 19 class Listener;
21 class Message; 20 class Message;
22 } // namespace base 21 } // namespace base
23 22
24 namespace remoting { 23 namespace remoting {
25 24
26 // Implements logic for launching and monitoring a worker process in a different 25 // Implements logic for launching and monitoring a worker process in a different
27 // session. 26 // session.
28 class WtsSessionProcessDelegate 27 class WtsSessionProcessDelegate
29 : public WorkerProcessLauncher::Delegate { 28 : public WorkerProcessLauncher::Delegate {
30 public: 29 public:
31 WtsSessionProcessDelegate( 30 WtsSessionProcessDelegate(
32 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 31 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
34 const FilePath& binary_path, 33 const base::FilePath& binary_path,
35 uint32 session_id, 34 uint32 session_id,
36 bool launch_elevated, 35 bool launch_elevated,
37 const std::string& channel_security); 36 const std::string& channel_security);
38 ~WtsSessionProcessDelegate(); 37 ~WtsSessionProcessDelegate();
39 38
40 // IPC::Sender implementation. 39 // IPC::Sender implementation.
41 virtual bool Send(IPC::Message* message) OVERRIDE; 40 virtual bool Send(IPC::Message* message) OVERRIDE;
42 41
43 // WorkerProcessLauncher::Delegate implementation. 42 // WorkerProcessLauncher::Delegate implementation.
44 virtual DWORD GetProcessId() const OVERRIDE; 43 virtual DWORD GetProcessId() const OVERRIDE;
45 virtual bool IsPermanentError(int failure_count) const OVERRIDE; 44 virtual bool IsPermanentError(int failure_count) const OVERRIDE;
46 virtual void KillProcess(DWORD exit_code) OVERRIDE; 45 virtual void KillProcess(DWORD exit_code) OVERRIDE;
47 virtual bool LaunchProcess( 46 virtual bool LaunchProcess(
48 IPC::Listener* delegate, 47 IPC::Listener* delegate,
49 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; 48 base::win::ScopedHandle* process_exit_event_out) OVERRIDE;
50 49
51 private: 50 private:
52 // The actual implementation resides in WtsSessionProcessDelegate::Core class. 51 // The actual implementation resides in WtsSessionProcessDelegate::Core class.
53 class Core; 52 class Core;
54 scoped_refptr<Core> core_; 53 scoped_refptr<Core> core_;
55 54
56 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); 55 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
57 }; 56 };
58 57
59 } // namespace remoting 58 } // namespace remoting
60 59
61 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 60 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/win/wts_console_session_process_driver.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698