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

Side by Side Diff: remoting/host/desktop_session_win.h

Issue 2950993003: [Chromoting] Use ProcessStatsSender in DaemonProcess (daemon process) (Closed)
Patch Set: Stop process stats when network process crashes Created 3 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
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_DESKTOP_SESSION_WIN_H_ 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_WIN_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_WIN_H_ 6 #define REMOTING_HOST_DESKTOP_SESSION_WIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Asks DaemonProcess to terminate this session. 85 // Asks DaemonProcess to terminate this session.
86 void TerminateSession(); 86 void TerminateSession();
87 87
88 // Injects a secure attention sequence into the session. 88 // Injects a secure attention sequence into the session.
89 virtual void InjectSas() = 0; 89 virtual void InjectSas() = 0;
90 90
91 // WorkerProcessIpcDelegate implementation. 91 // WorkerProcessIpcDelegate implementation.
92 void OnChannelConnected(int32_t peer_pid) override; 92 void OnChannelConnected(int32_t peer_pid) override;
93 bool OnMessageReceived(const IPC::Message& message) override; 93 bool OnMessageReceived(const IPC::Message& message) override;
94 void OnPermanentError(int exit_code) override; 94 void OnPermanentError(int exit_code) override;
95 void OnWorkerProcessStopped(int exit_code) override;
95 96
96 // WtsTerminalObserver implementation. 97 // WtsTerminalObserver implementation.
97 void OnSessionAttached(uint32_t session_id) override; 98 void OnSessionAttached(uint32_t session_id) override;
98 void OnSessionDetached() override; 99 void OnSessionDetached() override;
99 100
100 private: 101 private:
101 // ChromotingDesktopDaemonMsg_DesktopAttached handler. 102 // ChromotingDesktopDaemonMsg_DesktopAttached handler.
102 void OnDesktopSessionAgentAttached(const IPC::ChannelHandle& desktop_pipe); 103 void OnDesktopSessionAgentAttached(const IPC::ChannelHandle& desktop_pipe);
103 104
104 // Requests the desktop process to crash. 105 // Requests the desktop process to crash.
(...skipping 29 matching lines...) Expand all
134 // The id of the current desktop session being remoted or UINT32_MAX if no 135 // The id of the current desktop session being remoted or UINT32_MAX if no
135 // session exists. 136 // session exists.
136 int session_id_ = UINT32_MAX; 137 int session_id_ = UINT32_MAX;
137 138
138 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); 139 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin);
139 }; 140 };
140 141
141 } // namespace remoting 142 } // namespace remoting
142 143
143 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ 144 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698