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

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

Issue 2085393002: Add ability to query desktop process for its session ID by the network process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing the default DACL for the Desktop Process Created 4 years, 6 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
« no previous file with comments | « remoting/host/desktop_session_win.cc ('k') | remoting/host/win/wts_session_process_delegate.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 #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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 18 matching lines...) Expand all
29 // Implements logic for launching and monitoring a worker process in a different 29 // Implements logic for launching and monitoring a worker process in a different
30 // session. 30 // session.
31 class WtsSessionProcessDelegate 31 class WtsSessionProcessDelegate
32 : public base::NonThreadSafe, 32 : public base::NonThreadSafe,
33 public WorkerProcessLauncher::Delegate { 33 public WorkerProcessLauncher::Delegate {
34 public: 34 public:
35 WtsSessionProcessDelegate( 35 WtsSessionProcessDelegate(
36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
37 std::unique_ptr<base::CommandLine> target, 37 std::unique_ptr<base::CommandLine> target,
38 bool launch_elevated, 38 bool launch_elevated,
39 const std::string& channel_security); 39 const std::string& channel_security,
40 const std::string& new_process_security);
40 ~WtsSessionProcessDelegate() override; 41 ~WtsSessionProcessDelegate() override;
41 42
42 // Initializes the object returning true on success. 43 // Initializes the object returning true on success.
43 bool Initialize(uint32_t session_id); 44 bool Initialize(uint32_t session_id);
44 45
45 // WorkerProcessLauncher::Delegate implementation. 46 // WorkerProcessLauncher::Delegate implementation.
46 void LaunchProcess(WorkerProcessLauncher* event_handler) override; 47 void LaunchProcess(WorkerProcessLauncher* event_handler) override;
47 void Send(IPC::Message* message) override; 48 void Send(IPC::Message* message) override;
48 void CloseChannel() override; 49 void CloseChannel() override;
49 void KillProcess() override; 50 void KillProcess() override;
50 51
51 private: 52 private:
52 // The actual implementation resides in WtsSessionProcessDelegate::Core class. 53 // The actual implementation resides in WtsSessionProcessDelegate::Core class.
53 class Core; 54 class Core;
54 scoped_refptr<Core> core_; 55 scoped_refptr<Core> core_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); 57 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
57 }; 58 };
58 59
59 } // namespace remoting 60 } // namespace remoting
60 61
61 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 62 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_win.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