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

Unified Diff: remoting/protocol/webrtc_video_stream.h

Issue 1571543002: Implement missing features in WebrtcVideoStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/webrtc_video_stream.h
diff --git a/remoting/protocol/webrtc_video_stream.h b/remoting/protocol/webrtc_video_stream.h
index bb52ab88193af8334908e3496423b63ea0475ea7..78bed6eff175ffdad18e751f45a6a6c4caf963c7 100644
--- a/remoting/protocol/webrtc_video_stream.h
+++ b/remoting/protocol/webrtc_video_stream.h
@@ -8,24 +8,34 @@
#include <stdint.h>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/video_stream.h"
-#include "third_party/webrtc/base/scoped_ref_ptr.h"
namespace webrtc {
+class DesktopSize;
+class DesktopCapturer;
class MediaStreamInterface;
class PeerConnectionInterface;
+class PeerConnectionFactoryInterface;
+class VideoTrackInterface;
} // namespace webrtc
namespace remoting {
namespace protocol {
+class WebrtcVideoCapturerAdapter;
+
class WebrtcVideoStream : public VideoStream {
public:
- WebrtcVideoStream(
- rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection,
- rtc::scoped_refptr<webrtc::MediaStreamInterface> stream);
+ WebrtcVideoStream();
~WebrtcVideoStream() override;
+ bool Start(scoped_ptr<webrtc::DesktopCapturer> desktop_capturer,
+ scoped_refptr<webrtc::PeerConnectionInterface> connection,
+ scoped_refptr<webrtc::PeerConnectionFactoryInterface>
+ peer_connection_factory);
+
// VideoStream interface.
void Pause(bool pause) override;
void OnInputEventReceived(int64_t event_timestamp) override;
@@ -34,8 +44,11 @@ class WebrtcVideoStream : public VideoStream {
void SetSizeCallback(const SizeCallback& size_callback) override;
private:
- rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection_;
- rtc::scoped_refptr<webrtc::MediaStreamInterface> stream_;
+ WebrtcVideoCapturerAdapter* capturer_adapter();
+
+ scoped_refptr<webrtc::PeerConnectionInterface> connection_;
+ scoped_refptr<webrtc::MediaStreamInterface> stream_;
+ scoped_refptr<webrtc::VideoTrackInterface> video_track_;
DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream);
};

Powered by Google App Engine
This is Rietveld 408576698