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

Unified Diff: remoting/protocol/webrtc_video_stream.h

Issue 1510343002: Add WebrtcConnectionToClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webrtc_thread
Patch Set: Created 5 years 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
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_stream.h
diff --git a/remoting/protocol/webrtc_video_stream.h b/remoting/protocol/webrtc_video_stream.h
new file mode 100644
index 0000000000000000000000000000000000000000..ffb0791c74dbb3f4912d45acf19ba65de20cdae0
--- /dev/null
+++ b/remoting/protocol/webrtc_video_stream.h
@@ -0,0 +1,44 @@
+// Copyright 2015 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_VIDEO_STREAM_H_
+#define REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_
+
+#include "base/macros.h"
+#include "remoting/protocol/video_stream.h"
+#include "third_party/webrtc/base/scoped_ref_ptr.h"
+
+namespace webrtc {
+class MediaStreamInterface;
+class PeerConnectionInterface;
+} // namespace webrtc
+
+namespace remoting {
+namespace protocol {
+
+class WebrtcVideoStream : public VideoStream {
+ public:
+ WebrtcVideoStream(
+ rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection,
+ rtc::scoped_refptr<webrtc::MediaStreamInterface> stream);
+ ~WebrtcVideoStream() override;
+
+ // VideoStream interface.
+ void Pause(bool pause) override;
+ void OnInputEventReceived(int64_t event_timestamp) override;
+ void SetLosslessEncode(bool want_lossless) override;
+ void SetLosslessColor(bool want_lossless) override;
+ void SetSizeCallback(const SizeCallback& size_callback) override;
+
+ private:
+ rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection_;
+ rtc::scoped_refptr<webrtc::MediaStreamInterface> stream_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698