Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: content/renderer/media/media_stream_constraints_util.h

Issue 227743004: Added a kEchoCancellation constraint to turn off the audio processing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: addressed Tommi's comments. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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| from constraints.
18 // Returns true if the constraint is specified in either mandatory or optional
19 // constraints.
20 bool GetConstraintValueAsBoolean(const blink::WebMediaConstraints& constraints,
21 const std::string& key,
22 bool* value);
23
24 // Method to get int value of constraint with |key| from constraints.
25 // Returns true if the constraint is specified in either mandatory or Optional
26 // constraints.
27 bool GetConstraintValueAsInteger(const blink::WebMediaConstraints& constraints,
28 const std::string& key,
29 int* value);
30
31 // Method to get std::string value of constraint with |key| from constraints.
32 // Returns true if the constraint is specified in either mandatory or Optional
33 // constraints.
34 bool GetConstraintValueAsString(const blink::WebMediaConstraints& constraints,
35 const std::string& key,
36 std::string* value);
37
38 // Method to get boolean value of constraint with |key| from the
39 // mandatory constraints.
40 bool GetMandatoryConstraintValueAsBoolean(
41 const blink::WebMediaConstraints& constraints,
42 const std::string& name,
43 bool* value);
44
45 // Method to get int value of constraint with |key| from the
46 // mandatory constraints.
47 bool GetMandatoryConstraintValueAsInteger(
48 const blink::WebMediaConstraints& constraints,
49 const std::string& name,
50 int* value);
51
52 // Method to get bool value of constraint with |key| from the
53 // optional constraints.
54 bool GetOptionalConstraintValueAsBoolean(
55 const blink::WebMediaConstraints& constraints,
56 const std::string& name,
57 bool* value);
58
59 // Method to get int value of constraint with |key| from the
60 // optional constraints.
61 bool GetOptionalConstraintValueAsInteger(
62 const blink::WebMediaConstraints& constraints,
63 const std::string& name,
64 int* value);
65
66 } // namespace content
67
68 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698