| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_FRAME_SCHEDULER_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "remoting/codec/webrtc_video_encoder.h" | 10 #include "remoting/codec/webrtc_video_encoder.h" |
| 11 #include "third_party/webrtc/video_encoder.h" | 11 #include "third_party/webrtc/video_encoder.h" |
| 12 | 12 |
| 13 namespace remoting { | 13 namespace remoting { |
| 14 namespace protocol { | 14 namespace protocol { |
| 15 | 15 |
| 16 struct HostFrameStats; | 16 struct HostFrameStats; |
| 17 class VideoChannelStateObserver; | |
| 18 class WebrtcDummyVideoEncoderFactory; | 17 class WebrtcDummyVideoEncoderFactory; |
| 19 | 18 |
| 20 // An abstract interface for frame schedulers, which are responsible for | 19 // An abstract interface for frame schedulers, which are responsible for |
| 21 // scheduling when video frames are captured and for defining encoding | 20 // scheduling when video frames are captured and for defining encoding |
| 22 // parameters for each frame. | 21 // parameters for each frame. |
| 23 class WebrtcFrameScheduler { | 22 class WebrtcFrameScheduler { |
| 24 public: | 23 public: |
| 25 WebrtcFrameScheduler() {} | 24 WebrtcFrameScheduler() {} |
| 26 virtual ~WebrtcFrameScheduler() {} | 25 virtual ~WebrtcFrameScheduler() {} |
| 27 | 26 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 virtual void OnFrameEncoded( | 45 virtual void OnFrameEncoded( |
| 47 const WebrtcVideoEncoder::EncodedFrame& encoded_frame, | 46 const WebrtcVideoEncoder::EncodedFrame& encoded_frame, |
| 48 const webrtc::EncodedImageCallback::Result& send_result, | 47 const webrtc::EncodedImageCallback::Result& send_result, |
| 49 HostFrameStats* frame_stats) = 0; | 48 HostFrameStats* frame_stats) = 0; |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 } // namespace protocol | 51 } // namespace protocol |
| 53 } // namespace remoting | 52 } // namespace remoting |
| 54 | 53 |
| 55 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_H_ | 54 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_H_ |
| OLD | NEW |