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

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

Issue 2050353002: Update webrtc::DesktopCapturer clients to implement OnCaptureResult(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromeos 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_capturer_proxy.cc ('k') | remoting/host/desktop_session_agent.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_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
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
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_
OLDNEW
« no previous file with comments | « remoting/host/desktop_capturer_proxy.cc ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698