OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROTOCOL_WEBRTC_VIDEO_RENDERER_ADAPTER_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_RENDERER_ADAPTER_H_ |
6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_RENDERER_ADAPTER_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_RENDERER_ADAPTER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace webrtc { | 23 namespace webrtc { |
24 class DesktopFrame; | 24 class DesktopFrame; |
25 class VideoFrameBuffer; | 25 class VideoFrameBuffer; |
26 } // namespace webrtc | 26 } // namespace webrtc |
27 | 27 |
28 namespace remoting { | 28 namespace remoting { |
29 namespace protocol { | 29 namespace protocol { |
30 | 30 |
31 class MessagePipe; | 31 class MessagePipe; |
32 class VideoRenderer; | 32 class VideoRenderer; |
33 class WebrtcTransport; | |
34 struct ClientFrameStats; | 33 struct ClientFrameStats; |
35 struct HostFrameStats; | 34 struct HostFrameStats; |
36 | 35 |
37 class WebrtcVideoRendererAdapter | 36 class WebrtcVideoRendererAdapter |
38 : public rtc::VideoSinkInterface<webrtc::VideoFrame>, | 37 : public rtc::VideoSinkInterface<webrtc::VideoFrame>, |
39 public VideoStatsStub, | 38 public VideoStatsStub, |
40 public ClientVideoStatsDispatcher::EventHandler { | 39 public ClientVideoStatsDispatcher::EventHandler { |
41 public: | 40 public: |
42 WebrtcVideoRendererAdapter(const std::string& label, | 41 WebrtcVideoRendererAdapter(const std::string& label, |
43 VideoRenderer* video_renderer); | 42 VideoRenderer* video_renderer); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 82 |
84 base::WeakPtrFactory<WebrtcVideoRendererAdapter> weak_factory_; | 83 base::WeakPtrFactory<WebrtcVideoRendererAdapter> weak_factory_; |
85 | 84 |
86 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoRendererAdapter); | 85 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoRendererAdapter); |
87 }; | 86 }; |
88 | 87 |
89 } // namespace remoting | 88 } // namespace remoting |
90 } // namespace protocol | 89 } // namespace protocol |
91 | 90 |
92 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_RENDERER_ADAPTER_H_ | 91 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_RENDERER_ADAPTER_H_ |
OLD | NEW |