Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace blink { | |
| 11 class WebMediaConstraints; | |
| 12 class WebString; | |
| 13 } | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 // Method to get boolean value of constraint with key |name| from constraints. | |
| 18 // Returns true if the constraint is specified in either manatory or optinal | |
| 19 // constraints. | |
| 20 bool GetConstraintValue(const blink::WebMediaConstraints& constraints, | |
| 21 const std::string& name, | |
| 22 bool* value); | |
| 23 | |
| 24 // Method to get int value of constraint with key |name| from constraints. | |
| 25 // Returns true if the constraint is specified in either manatory or optinal | |
| 26 // constraints. | |
| 27 bool GetConstraintValue(const blink::WebMediaConstraints& constraints, | |
| 28 const std::string& name, | |
| 29 int* value); | |
| 30 | |
| 31 // Method to get int value of constraint with key |name| from the | |
| 32 // manatory constraints. | |
| 33 bool GetManatoryConstraintValue(const blink::WebMediaConstraints& constraints, | |
|
tommi (sloooow) - chröme
2014/04/08 10:49:30
fix typo
no longer working on chromium
2014/04/11 08:56:30
Done.
| |
| 34 const std::string& name, | |
| 35 int* value); | |
| 36 | |
| 37 // Method to get int value of constraint with key |name| from the | |
| 38 // optional constraints. | |
| 39 bool GetOptionalConstraintValue(const blink::WebMediaConstraints& constraints, | |
| 40 const std::string& name, | |
| 41 int* value); | |
| 42 | |
| 43 } // namespace content | |
| 44 | |
| 45 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ | |
| OLD | NEW |