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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, | 71 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
72 scoped_refptr<AutoThreadTaskRunner> input_task_runner, | 72 scoped_refptr<AutoThreadTaskRunner> input_task_runner, |
73 scoped_refptr<AutoThreadTaskRunner> io_task_runner); | 73 scoped_refptr<AutoThreadTaskRunner> io_task_runner); |
74 | 74 |
75 // IPC::Listener implementation. | 75 // IPC::Listener implementation. |
76 bool OnMessageReceived(const IPC::Message& message) override; | 76 bool OnMessageReceived(const IPC::Message& message) override; |
77 void OnChannelConnected(int32_t peer_pid) override; | 77 void OnChannelConnected(int32_t peer_pid) override; |
78 void OnChannelError() override; | 78 void OnChannelError() override; |
79 | 79 |
80 // webrtc::DesktopCapturer::Callback implementation. | 80 // webrtc::DesktopCapturer::Callback implementation. |
81 void OnCaptureCompleted(webrtc::DesktopFrame* frame) override; | 81 void OnCaptureResult(webrtc::DesktopCapturer::Result result, |
| 82 std::unique_ptr<webrtc::DesktopFrame> frame) override; |
82 | 83 |
83 // webrtc::MouseCursorMonitor::Callback implementation. | 84 // webrtc::MouseCursorMonitor::Callback implementation. |
84 void OnMouseCursor(webrtc::MouseCursor* cursor) override; | 85 void OnMouseCursor(webrtc::MouseCursor* cursor) override; |
85 void OnMouseCursorPosition(webrtc::MouseCursorMonitor::CursorState state, | 86 void OnMouseCursorPosition(webrtc::MouseCursorMonitor::CursorState state, |
86 const webrtc::DesktopVector& position) override; | 87 const webrtc::DesktopVector& position) override; |
87 | 88 |
88 // Forwards a local clipboard event though the IPC channel to the network | 89 // Forwards a local clipboard event though the IPC channel to the network |
89 // process. | 90 // process. |
90 void InjectClipboardEvent(const protocol::ClipboardEvent& event); | 91 void InjectClipboardEvent(const protocol::ClipboardEvent& event); |
91 | 92 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 198 |
198 // Used to disable callbacks to |this|. | 199 // Used to disable callbacks to |this|. |
199 base::WeakPtrFactory<DesktopSessionAgent> weak_factory_; | 200 base::WeakPtrFactory<DesktopSessionAgent> weak_factory_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 202 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); |
202 }; | 203 }; |
203 | 204 |
204 } // namespace remoting | 205 } // namespace remoting |
205 | 206 |
206 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 207 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
OLD | NEW |