Index: webrtc/api/mediaconstraintsinterface.h |
diff --git a/webrtc/api/mediaconstraintsinterface.h b/webrtc/api/mediaconstraintsinterface.h |
index 0c251f879387c7189120e6cb3601e5e42232dc12..3db6e2672bd67a715f22197db3c1b56f1a799ada 100644 |
--- a/webrtc/api/mediaconstraintsinterface.h |
+++ b/webrtc/api/mediaconstraintsinterface.h |
@@ -13,12 +13,19 @@ |
// http://www.w3.org/TR/mediacapture-streams/#mediastreamconstraints and also |
// used in WebRTC: http://dev.w3.org/2011/webrtc/editor/webrtc.html#constraints. |
+// This interface is being deprecated in Chrome, and may be removed |
+// from WebRTC too. |
+// https://bugs.chromium.org/p/webrtc/issues/detail?id=5617 |
+ |
#ifndef WEBRTC_API_MEDIACONSTRAINTSINTERFACE_H_ |
#define WEBRTC_API_MEDIACONSTRAINTSINTERFACE_H_ |
#include <string> |
#include <vector> |
+#include "webrtc/base/optional.h" |
+#include "webrtc/api/peerconnectioninterface.h" |
+ |
namespace webrtc { |
// MediaConstraintsInterface |
@@ -118,6 +125,16 @@ bool FindConstraint(const MediaConstraintsInterface* constraints, |
const std::string& key, bool* value, |
size_t* mandatory_constraints); |
+bool FindConstraint(const MediaConstraintsInterface* constraints, |
+ const std::string& key, |
+ int* value, |
+ size_t* mandatory_constraints); |
+ |
+// Copy all relevant constraints into an RTCConfiguration object. |
+void CopyConstraintsIntoRtcConfiguration( |
+ const MediaConstraintsInterface* constraints, |
+ PeerConnectionInterface::RTCConfiguration* configuration); |
+ |
} // namespace webrtc |
#endif // WEBRTC_API_MEDIACONSTRAINTSINTERFACE_H_ |