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

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

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 <stdint.h>
9
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
14 #include "base/win/scoped_handle.h" 16 #include "base/win/scoped_handle.h"
15 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
16 #include "remoting/host/win/worker_process_launcher.h" 18 #include "remoting/host/win/worker_process_launcher.h"
17 19
18 namespace base { 20 namespace base {
19 class CommandLine; 21 class CommandLine;
20 class SingleThreadTaskRunner; 22 class SingleThreadTaskRunner;
(...skipping 20 matching lines...) Expand all
41 43
42 // WorkerProcessLauncher::Delegate implementation. 44 // WorkerProcessLauncher::Delegate implementation.
43 void LaunchProcess(WorkerProcessLauncher* event_handler) override; 45 void LaunchProcess(WorkerProcessLauncher* event_handler) override;
44 void Send(IPC::Message* message) override; 46 void Send(IPC::Message* message) override;
45 void CloseChannel() override; 47 void CloseChannel() override;
46 void KillProcess() override; 48 void KillProcess() override;
47 49
48 private: 50 private:
49 // IPC::Listener implementation. 51 // IPC::Listener implementation.
50 bool OnMessageReceived(const IPC::Message& message) override; 52 bool OnMessageReceived(const IPC::Message& message) override;
51 void OnChannelConnected(int32 peer_pid) override; 53 void OnChannelConnected(int32_t peer_pid) override;
52 void OnChannelError() override; 54 void OnChannelError() override;
53 55
54 void ReportFatalError(); 56 void ReportFatalError();
55 void ReportProcessLaunched(base::win::ScopedHandle worker_process); 57 void ReportProcessLaunched(base::win::ScopedHandle worker_process);
56 58
57 // The task runner serving job object notifications. 59 // The task runner serving job object notifications.
58 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 60 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
59 61
60 // Command line of the launched process. 62 // Command line of the launched process.
61 scoped_ptr<base::CommandLine> target_command_; 63 scoped_ptr<base::CommandLine> target_command_;
62 64
63 // The server end of the IPC channel used to communicate to the worker 65 // The server end of the IPC channel used to communicate to the worker
64 // process. 66 // process.
65 scoped_ptr<IPC::ChannelProxy> channel_; 67 scoped_ptr<IPC::ChannelProxy> channel_;
66 68
67 WorkerProcessLauncher* event_handler_; 69 WorkerProcessLauncher* event_handler_;
68 70
69 // The handle of the worker process, if launched. 71 // The handle of the worker process, if launched.
70 base::win::ScopedHandle worker_process_; 72 base::win::ScopedHandle worker_process_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate); 74 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate);
73 }; 75 };
74 76
75 } // namespace remoting 77 } // namespace remoting
76 78
77 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ 79 #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/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698