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

Side by Side Diff: remoting/host/win/unprivileged_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_UNPRIVILEGED_PROCESS_DELEGATE_H_ 5 #ifndef REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_
6 #define REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ 6 #define REMOTING_HOST_WIN_UNPRIVILEGED_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/file_path.h" 10 #include "base/file_path.h"
(...skipping 13 matching lines...) Expand all
24 24
25 namespace remoting { 25 namespace remoting {
26 26
27 // Implements logic for launching and monitoring a worker process under a less 27 // Implements logic for launching and monitoring a worker process under a less
28 // privileged user account. 28 // privileged user account.
29 class UnprivilegedProcessDelegate : public WorkerProcessLauncher::Delegate { 29 class UnprivilegedProcessDelegate : public WorkerProcessLauncher::Delegate {
30 public: 30 public:
31 UnprivilegedProcessDelegate( 31 UnprivilegedProcessDelegate(
32 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
34 const FilePath& binary_path); 34 const base::FilePath& binary_path);
35 virtual ~UnprivilegedProcessDelegate(); 35 virtual ~UnprivilegedProcessDelegate();
36 36
37 // IPC::Sender implementation. 37 // IPC::Sender implementation.
38 virtual bool Send(IPC::Message* message) OVERRIDE; 38 virtual bool Send(IPC::Message* message) OVERRIDE;
39 39
40 // WorkerProcessLauncher::Delegate implementation. 40 // WorkerProcessLauncher::Delegate implementation.
41 virtual DWORD GetProcessId() const OVERRIDE; 41 virtual DWORD GetProcessId() const OVERRIDE;
42 virtual bool IsPermanentError(int failure_count) const OVERRIDE; 42 virtual bool IsPermanentError(int failure_count) const OVERRIDE;
43 virtual void KillProcess(DWORD exit_code) OVERRIDE; 43 virtual void KillProcess(DWORD exit_code) OVERRIDE;
44 virtual bool LaunchProcess( 44 virtual bool LaunchProcess(
45 IPC::Listener* delegate, 45 IPC::Listener* delegate,
46 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; 46 base::win::ScopedHandle* process_exit_event_out) OVERRIDE;
47 47
48 private: 48 private:
49 // The task runner all public methods of this class should be called on. 49 // The task runner all public methods of this class should be called on.
50 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 50 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
51 51
52 // The task runner serving job object notifications. 52 // The task runner serving job object notifications.
53 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 53 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
54 54
55 // Path to the worker process binary. 55 // Path to the worker process binary.
56 FilePath binary_path_; 56 base::FilePath binary_path_;
57 57
58 // The server end of the IPC channel used to communicate to the worker 58 // The server end of the IPC channel used to communicate to the worker
59 // process. 59 // process.
60 scoped_ptr<IPC::ChannelProxy> channel_; 60 scoped_ptr<IPC::ChannelProxy> channel_;
61 61
62 // The handle of the worker process, if launched. 62 // The handle of the worker process, if launched.
63 base::win::ScopedHandle worker_process_; 63 base::win::ScopedHandle worker_process_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate); 65 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate);
66 }; 66 };
67 67
68 } // namespace remoting 68 } // namespace remoting
69 69
70 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ 70 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/win/launch_process_with_token.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698