Chromium Code Reviews| Index: remoting/protocol/webrtc_dummy_video_capturer.h |
| diff --git a/remoting/protocol/webrtc_dummy_video_capturer.h b/remoting/protocol/webrtc_dummy_video_capturer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d9724189bbeb14e1aef9511c7abe43a144c837e0 |
| --- /dev/null |
| +++ b/remoting/protocol/webrtc_dummy_video_capturer.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ |
| +#define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/macros.h" |
| +#include "remoting/protocol/webrtc_frame_scheduler.h" |
| +#include "third_party/webrtc/media/base/videocapturer.h" |
| + |
| +namespace remoting { |
| +namespace protocol { |
| + |
| +// A dummy video capturer needed to create peer connection. We do not supply |
| +// captured frames throught this interface, but instead provide encoded |
| +// frames to WebRtc. We expect this requirement to go away once we have |
| +// proper support for providing encoded frames to WebRtc through |
| +// VideoSourceInterface |
| +class WebRtcDummyVideoCapturer : public cricket::VideoCapturer { |
| + public: |
| + explicit WebRtcDummyVideoCapturer( |
| + scoped_ptr<WebRtcFrameScheduler> frame_scheduler); |
|
Sergey Ulanov
2016/04/12 18:57:31
change this to std::unique_ptr<> please
Irfan
2016/04/12 21:13:11
Done.
|
| + ~WebRtcDummyVideoCapturer() override; |
| + |
| + cricket::CaptureState Start( |
| + const cricket::VideoFormat& capture_format) override; |
| + void Stop() override; |
| + bool IsRunning() override; |
| + bool IsScreencast() const override; |
| + bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; |
| + |
| + private: |
| + scoped_ptr<WebRtcFrameScheduler> frame_scheduler_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(WebRtcDummyVideoCapturer); |
| +}; |
| + |
| +} // namespace protocol |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ |