OLD | NEW |
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_AGENT_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
6 #define REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 6 #define REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 IPC::PlatformFileForTransit* client_out, | 124 IPC::PlatformFileForTransit* client_out, |
125 scoped_ptr<IPC::ChannelProxy>* server_out) = 0; | 125 scoped_ptr<IPC::ChannelProxy>* server_out) = 0; |
126 | 126 |
127 // Handles StartSessionAgent request from the client. | 127 // Handles StartSessionAgent request from the client. |
128 void OnStartSessionAgent(const std::string& authenticated_jid, | 128 void OnStartSessionAgent(const std::string& authenticated_jid, |
129 const ScreenResolution& resolution); | 129 const ScreenResolution& resolution); |
130 | 130 |
131 // Handles CaptureFrame requests from the client. | 131 // Handles CaptureFrame requests from the client. |
132 void OnCaptureFrame(); | 132 void OnCaptureFrame(); |
133 | 133 |
134 // Handles InvalidateRegion requests from the client. | |
135 void OnInvalidateRegion(const std::vector<SkIRect>& invalid_rects); | |
136 | |
137 // Handles SharedBufferCreated notification from the client. | 134 // Handles SharedBufferCreated notification from the client. |
138 void OnSharedBufferCreated(int id); | 135 void OnSharedBufferCreated(int id); |
139 | 136 |
140 // Handles event executor requests from the client. | 137 // Handles event executor requests from the client. |
141 void OnInjectClipboardEvent(const std::string& serialized_event); | 138 void OnInjectClipboardEvent(const std::string& serialized_event); |
142 void OnInjectKeyEvent(const std::string& serialized_event); | 139 void OnInjectKeyEvent(const std::string& serialized_event); |
143 void OnInjectMouseEvent(const std::string& serialized_event); | 140 void OnInjectMouseEvent(const std::string& serialized_event); |
144 | 141 |
145 // Handles ChromotingNetworkDesktopMsg_SetScreenResolution request from | 142 // Handles ChromotingNetworkDesktopMsg_SetScreenResolution request from |
146 // the client. | 143 // the client. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 250 |
254 // Captures the screen. | 251 // Captures the screen. |
255 scoped_ptr<media::ScreenCapturer> video_capturer_; | 252 scoped_ptr<media::ScreenCapturer> video_capturer_; |
256 | 253 |
257 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 254 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); |
258 }; | 255 }; |
259 | 256 |
260 } // namespace remoting | 257 } // namespace remoting |
261 | 258 |
262 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 259 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
OLD | NEW |