Android: Generate JNI code for MediaConstraints
Also improves ownership model by using std::unique_ptr in a couple of places instead of raw pointers. Bug: webrtc:8278 Change-Id: I0429ec3c416b5baa1ffa21dad71e0d64b004c446 Reviewed-on: https://webrtc-review.googlesource.com/25020 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20863}
This commit is contained in:
committed by
Commit Bot
parent
f281853c11
commit
3ecdd0f02a
@ -50,9 +50,6 @@ class MediaConstraintsInterface {
|
||||
bool FindFirst(const std::string& key, std::string* value) const;
|
||||
};
|
||||
|
||||
virtual const Constraints& GetMandatory() const = 0;
|
||||
virtual const Constraints& GetOptional() const = 0;
|
||||
|
||||
// Constraint keys used by a local video source.
|
||||
// Specified by draft-alvestrand-constraints-resolution-00b
|
||||
static const char kMinAspectRatio[]; // minAspectRatio
|
||||
@ -125,9 +122,10 @@ class MediaConstraintsInterface {
|
||||
// stripped by Chrome before passed down to Libjingle.
|
||||
static const char kInternalConstraintPrefix[];
|
||||
|
||||
protected:
|
||||
// Dtor protected as objects shouldn't be deleted via this interface
|
||||
virtual ~MediaConstraintsInterface() {}
|
||||
virtual ~MediaConstraintsInterface() = default;
|
||||
|
||||
virtual const Constraints& GetMandatory() const = 0;
|
||||
virtual const Constraints& GetOptional() const = 0;
|
||||
};
|
||||
|
||||
bool FindConstraint(const MediaConstraintsInterface* constraints,
|
||||
|
||||
Reference in New Issue
Block a user