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

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

Issue 1275783003: Add a virtual beamforming audio device on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove audio_manager_openbsd. Created 5 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_CONSTRAINT_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_CONSTRAINT_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_CONSTRAINT_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_CONSTRAINT_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 11 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class MockMediaConstraintFactory { 15 class MockMediaConstraintFactory {
16 public: 16 public:
17 MockMediaConstraintFactory(); 17 MockMediaConstraintFactory();
18 ~MockMediaConstraintFactory(); 18 ~MockMediaConstraintFactory();
19 19
20 blink::WebMediaConstraints CreateWebMediaConstraints(); 20 blink::WebMediaConstraints CreateWebMediaConstraints() const;
21 void AddMandatory(const std::string& key, int value); 21 void AddMandatory(const std::string& key, int value);
22 void AddMandatory(const std::string& key, double value); 22 void AddMandatory(const std::string& key, double value);
23 void AddMandatory(const std::string& key, const std::string& value); 23 void AddMandatory(const std::string& key, const std::string& value);
24 void AddMandatory(const std::string& key, bool value); 24 void AddMandatory(const std::string& key, bool value);
25 void AddOptional(const std::string& key, int value); 25 void AddOptional(const std::string& key, int value);
26 void AddOptional(const std::string& key, double value); 26 void AddOptional(const std::string& key, double value);
27 void AddOptional(const std::string& key, const std::string& value); 27 void AddOptional(const std::string& key, const std::string& value);
28 void AddOptional(const std::string& key, bool value); 28 void AddOptional(const std::string& key, bool value);
29 void DisableDefaultAudioConstraints(); 29 void DisableDefaultAudioConstraints();
30 30
31 private: 31 private:
32 std::vector<blink::WebMediaConstraint> mandatory_; 32 std::vector<blink::WebMediaConstraint> mandatory_;
33 std::vector<blink::WebMediaConstraint> optional_; 33 std::vector<blink::WebMediaConstraint> optional_;
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_CONSTRAINT_FACTORY_H_ 38 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_CONSTRAINT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698