| 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 <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void Stop(); | 99 void Stop(); |
| 100 | 100 |
| 101 protected: | 101 protected: |
| 102 friend class base::RefCountedThreadSafe<DesktopSessionAgent>; | 102 friend class base::RefCountedThreadSafe<DesktopSessionAgent>; |
| 103 | 103 |
| 104 virtual ~DesktopSessionAgent(); | 104 virtual ~DesktopSessionAgent(); |
| 105 | 105 |
| 106 // ClientSessionControl interface. | 106 // ClientSessionControl interface. |
| 107 virtual const std::string& client_jid() const OVERRIDE; | 107 virtual const std::string& client_jid() const OVERRIDE; |
| 108 virtual void DisconnectSession() OVERRIDE; | 108 virtual void DisconnectSession() OVERRIDE; |
| 109 virtual void OnLocalMouseMoved(const SkIPoint& position) OVERRIDE; | 109 virtual void OnLocalMouseMoved( |
| 110 const webrtc::DesktopVector& position) OVERRIDE; |
| 110 virtual void SetDisableInputs(bool disable_inputs) OVERRIDE; | 111 virtual void SetDisableInputs(bool disable_inputs) OVERRIDE; |
| 111 | 112 |
| 112 // Handles StartSessionAgent request from the client. | 113 // Handles StartSessionAgent request from the client. |
| 113 void OnStartSessionAgent(const std::string& authenticated_jid, | 114 void OnStartSessionAgent(const std::string& authenticated_jid, |
| 114 const ScreenResolution& resolution, | 115 const ScreenResolution& resolution, |
| 115 bool virtual_terminal); | 116 bool virtual_terminal); |
| 116 | 117 |
| 117 // Handles CaptureFrame requests from the client. | 118 // Handles CaptureFrame requests from the client. |
| 118 void OnCaptureFrame(); | 119 void OnCaptureFrame(); |
| 119 | 120 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // Keep reference to the last frame sent to make sure shared buffer is alive | 220 // Keep reference to the last frame sent to make sure shared buffer is alive |
| 220 // before it's received. | 221 // before it's received. |
| 221 scoped_ptr<webrtc::DesktopFrame> last_frame_; | 222 scoped_ptr<webrtc::DesktopFrame> last_frame_; |
| 222 | 223 |
| 223 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 224 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 } // namespace remoting | 227 } // namespace remoting |
| 227 | 228 |
| 228 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 229 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
| OLD | NEW |