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 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "content/common/media/media_stream_options.h" | 8 #include "content/common/media/media_stream_options.h" |
9 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" | 9 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
10 #include "third_party/WebKit/public/platform/WebCString.h" | 10 #include "third_party/WebKit/public/platform/WebCString.h" |
11 #include "third_party/WebKit/public/platform/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, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 RTCMediaConstraints::GetOptional() const { | 65 RTCMediaConstraints::GetOptional() const { |
66 return optional_; | 66 return optional_; |
67 } | 67 } |
68 | 68 |
69 void RTCMediaConstraints::AddOptional(const std::string& key, | 69 void RTCMediaConstraints::AddOptional(const std::string& key, |
70 const std::string& value) { | 70 const std::string& value) { |
71 optional_.push_back(Constraint(key, value)); | 71 optional_.push_back(Constraint(key, value)); |
72 } | 72 } |
73 | 73 |
74 } // namespace content | 74 } // namespace content |
OLD | NEW |