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

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

Issue 1617243005: Apply new-style constraints to video_source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add <vector> include Created 4 years, 11 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 2016 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_MOCK_CONSTRAINT_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
12
13 namespace content {
14
15 class MockConstraintFactory {
mcasas 2016/01/26 16:08:02 This Mock is quite small and I only see it used in
hta - Chromium 2016/01/26 19:35:24 I intend to nuke mock_media_constraint_factory whe
16 public:
17 MockConstraintFactory();
18 ~MockConstraintFactory();
19
20 blink::WebMediaConstraints CreateWebMediaConstraints() const;
21 blink::WebMediaTrackConstraintSet& basic() { return basic_; }
22 blink::WebMediaTrackConstraintSet& add_advanced();
jochen (gone - plz use gerrit) 2016/01/26 17:10:13 AddAdvanced()
hta - Chromium 2016/01/26 19:35:24 Done.
23
24 private:
25 blink::WebMediaTrackConstraintSet basic_;
26 std::vector<blink::WebMediaTrackConstraintSet> advanced_;
27 };
jochen (gone - plz use gerrit) 2016/01/26 17:10:13 disallow copy/assign
hta - Chromium 2016/01/26 19:35:24 Done.
28
29 } // namespace content
30
31 #endif // CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698