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

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

Issue 1101033002: Update {virtual,override} to follow C++11 style in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 19 matching lines...) Expand all
30 // Implements logic for launching and monitoring a worker process under a less 30 // Implements logic for launching and monitoring a worker process under a less
31 // privileged user account. 31 // privileged user account.
32 class UnprivilegedProcessDelegate 32 class UnprivilegedProcessDelegate
33 : public base::NonThreadSafe, 33 : public base::NonThreadSafe,
34 public IPC::Listener, 34 public IPC::Listener,
35 public WorkerProcessLauncher::Delegate { 35 public WorkerProcessLauncher::Delegate {
36 public: 36 public:
37 UnprivilegedProcessDelegate( 37 UnprivilegedProcessDelegate(
38 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 38 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
39 scoped_ptr<base::CommandLine> target_command); 39 scoped_ptr<base::CommandLine> target_command);
40 virtual ~UnprivilegedProcessDelegate(); 40 ~UnprivilegedProcessDelegate() override;
41 41
42 // WorkerProcessLauncher::Delegate implementation. 42 // WorkerProcessLauncher::Delegate implementation.
43 virtual void LaunchProcess(WorkerProcessLauncher* event_handler) override; 43 void LaunchProcess(WorkerProcessLauncher* event_handler) override;
44 virtual void Send(IPC::Message* message) override; 44 void Send(IPC::Message* message) override;
45 virtual void CloseChannel() override; 45 void CloseChannel() override;
46 virtual void KillProcess() override; 46 void KillProcess() override;
47 47
48 private: 48 private:
49 // IPC::Listener implementation. 49 // IPC::Listener implementation.
50 virtual bool OnMessageReceived(const IPC::Message& message) override; 50 bool OnMessageReceived(const IPC::Message& message) override;
51 virtual void OnChannelConnected(int32 peer_pid) override; 51 void OnChannelConnected(int32 peer_pid) override;
52 virtual void OnChannelError() override; 52 void OnChannelError() override;
53 53
54 void ReportFatalError(); 54 void ReportFatalError();
55 void ReportProcessLaunched(base::win::ScopedHandle worker_process); 55 void ReportProcessLaunched(base::win::ScopedHandle worker_process);
56 56
57 // The task runner serving job object notifications. 57 // The task runner serving job object notifications.
58 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 58 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
59 59
60 // Command line of the launched process. 60 // Command line of the launched process.
61 scoped_ptr<base::CommandLine> target_command_; 61 scoped_ptr<base::CommandLine> target_command_;
62 62
63 // The server end of the IPC channel used to communicate to the worker 63 // The server end of the IPC channel used to communicate to the worker
64 // process. 64 // process.
65 scoped_ptr<IPC::ChannelProxy> channel_; 65 scoped_ptr<IPC::ChannelProxy> channel_;
66 66
67 WorkerProcessLauncher* event_handler_; 67 WorkerProcessLauncher* event_handler_;
68 68
69 // The handle of the worker process, if launched. 69 // The handle of the worker process, if launched.
70 base::win::ScopedHandle worker_process_; 70 base::win::ScopedHandle worker_process_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate); 72 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate);
73 }; 73 };
74 74
75 } // namespace remoting 75 } // namespace remoting
76 76
77 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ 77 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/win/session_input_injector.cc ('k') | remoting/host/win/worker_process_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698