1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_
8 #include "base/compiler_specific.h"
9 #include "third_party/libjingle/source/talk/app/webrtc/mediaconstraintsinterface.h"
12 class WebMediaConstraints
;
17 // RTCMediaConstraints acts as a glue layer between WebKits MediaConstraints and
18 // libjingle webrtc::MediaConstraintsInterface.
19 // Constraints are used by PeerConnection and getUserMedia API calls.
20 class RTCMediaConstraints
: public webrtc::MediaConstraintsInterface
{
22 explicit RTCMediaConstraints(
23 const WebKit::WebMediaConstraints
& constraints
);
24 virtual ~RTCMediaConstraints();
25 virtual const Constraints
& GetMandatory() const OVERRIDE
;
26 virtual const Constraints
& GetOptional() const OVERRIDE
;
29 Constraints mandatory_
;
30 Constraints optional_
;
33 } // namespace content
36 #endif // CONTENT_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_