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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.h

Issue 396193005: Converts RTCOfferOptions to constriants in the glue code for createOffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix sync Created 6 years, 5 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: content/renderer/media/rtc_peer_connection_handler.h
diff --git a/content/renderer/media/rtc_peer_connection_handler.h b/content/renderer/media/rtc_peer_connection_handler.h
index 558ecbf631d6a00cea292ac2b3e6e1f3d2233c8d..537423e089f73624b74f08b57f0e037e6382af15 100644
--- a/content/renderer/media/rtc_peer_connection_handler.h
+++ b/content/renderer/media/rtc_peer_connection_handler.h
@@ -20,6 +20,7 @@
namespace blink {
class WebFrame;
class WebRTCDataChannelHandler;
+class WebRTCOfferOptions;
}
namespace content {
@@ -27,6 +28,7 @@ namespace content {
class PeerConnectionDependencyFactory;
class PeerConnectionTracker;
class RemoteMediaStreamImpl;
+class RTCMediaConstraints;
class WebRtcMediaStreamAdapter;
// Mockable wrapper for blink::WebRTCStatsResponse
@@ -91,6 +93,10 @@ class CONTENT_EXPORT RTCPeerConnectionHandler
// Destroy all existing RTCPeerConnectionHandler objects.
static void DestructAllHandlers();
+ static void ConvertOfferOptionsToConstraints(
+ const blink::WebRTCOfferOptions& options,
+ RTCMediaConstraints* output);
+
void associateWithFrame(blink::WebFrame* frame);
// Initialize method only used for unit test.
@@ -107,6 +113,10 @@ class CONTENT_EXPORT RTCPeerConnectionHandler
virtual void createOffer(
const blink::WebRTCSessionDescriptionRequest& request,
const blink::WebMediaConstraints& options) OVERRIDE;
+ virtual void createOffer(
+ const blink::WebRTCSessionDescriptionRequest& request,
+ const blink::WebRTCOfferOptions& options) OVERRIDE;
+
virtual void createAnswer(
const blink::WebRTCSessionDescriptionRequest& request,
const blink::WebMediaConstraints& options) OVERRIDE;
« no previous file with comments | « content/renderer/media/peer_connection_tracker.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698