| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #include "content/renderer/media/rtc_media_constraints.h" | 4 #include "content/renderer/media/rtc_media_constraints.h" |
| 5 | 5 |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 | 7 |
| 8 #include "content/common/media/media_stream_options.h" | 8 #include "content/common/media/media_stream_options.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaConstraints
.h" | 9 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 10 #include "third_party/WebKit/public/platform/WebCString.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void GetNativeMediaConstraints( | 16 void GetNativeMediaConstraints( |
| 17 const WebKit::WebVector<WebKit::WebMediaConstraint>& constraints, | 17 const WebKit::WebVector<WebKit::WebMediaConstraint>& constraints, |
| 18 webrtc::MediaConstraintsInterface::Constraints* native_constraints) { | 18 webrtc::MediaConstraintsInterface::Constraints* native_constraints) { |
| 19 DCHECK(native_constraints); | 19 DCHECK(native_constraints); |
| 20 for (size_t i = 0; i < constraints.size(); ++i) { | 20 for (size_t i = 0; i < constraints.size(); ++i) { |
| 21 webrtc::MediaConstraintsInterface::Constraint new_constraint; | 21 webrtc::MediaConstraintsInterface::Constraint new_constraint; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 RTCMediaConstraints::GetMandatory() const { | 52 RTCMediaConstraints::GetMandatory() const { |
| 53 return mandatory_; | 53 return mandatory_; |
| 54 } | 54 } |
| 55 | 55 |
| 56 const webrtc::MediaConstraintsInterface::Constraints& | 56 const webrtc::MediaConstraintsInterface::Constraints& |
| 57 RTCMediaConstraints::GetOptional() const { | 57 RTCMediaConstraints::GetOptional() const { |
| 58 return optional_; | 58 return optional_; |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace content | 61 } // namespace content |
| OLD | NEW |