Fix build break
[chromium-blink-merge.git] / content / renderer / media / rtc_media_constraints.h
blob24a92ee2e6986ed30f3ff2c2753e3d3f3c97d3d9
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"
11 namespace WebKit {
12 class WebMediaConstraints;
15 namespace content {
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 {
21 public:
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;
28 protected:
29 Constraints mandatory_;
30 Constraints optional_;
33 } // namespace content
36 #endif // CONTENT_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_