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

Unified Diff: remoting/protocol/webrtc_transport.h

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sergeyu comments and rebased Created 4 years, 8 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_transport.h
diff --git a/remoting/protocol/webrtc_transport.h b/remoting/protocol/webrtc_transport.h
index c78aad71531a16f6952b49c77d194f93a7a24178..56f05cb9c1294c99399bd1319f4b85d0da0efd0c 100644
--- a/remoting/protocol/webrtc_transport.h
+++ b/remoting/protocol/webrtc_transport.h
@@ -6,6 +6,7 @@
#define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_
#include <memory>
+#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -16,6 +17,7 @@
#include "crypto/hmac.h"
#include "remoting/protocol/transport.h"
#include "remoting/protocol/webrtc_data_stream_adapter.h"
+#include "remoting/protocol/webrtc_video_encoder.h"
#include "remoting/signaling/signal_strategy.h"
#include "third_party/webrtc/api/peerconnectioninterface.h"
@@ -66,6 +68,9 @@ class WebrtcTransport : public Transport,
webrtc::PeerConnectionFactoryInterface* peer_connection_factory() {
return peer_connection_factory_;
}
+ remoting::WebRtcVideoEncoderFactory* video_encoder_factory() {
+ return video_encoder_factory_;
+ }
// Factories for outgoing and incoming data channels. Must be used only after
// the transport is connected.
@@ -80,6 +85,7 @@ class WebrtcTransport : public Transport,
void Start(Authenticator* authenticator,
SendTransportInfoCallback send_transport_info_callback) override;
bool ProcessTransportInfo(buzz::XmlElement* transport_info) override;
+ void Close(ErrorCode error);
private:
void OnLocalSessionDescriptionCreated(
@@ -109,8 +115,6 @@ class WebrtcTransport : public Transport,
void SendTransportInfo();
void AddPendingCandidatesIfPossible();
- void Close(ErrorCode error);
-
base::ThreadChecker thread_checker_;
rtc::Thread* worker_thread_;
@@ -126,6 +130,8 @@ class WebrtcTransport : public Transport,
peer_connection_factory_;
rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
+ remoting::WebRtcVideoEncoderFactory* video_encoder_factory_;
+
bool negotiation_pending_ = false;
bool connected_ = false;

Powered by Google App Engine
This is Rietveld 408576698