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

Side by Side Diff: third_party/WebKit/public/platform/modules/media_capabilities/WebMediaConfiguration.h

Issue 2706313002: Media Capabilities: add plumbing between Blink and media/blink/. (Closed)
Patch Set: oups Created 3 years, 9 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 2017 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 WebMediaConfiguration_h
6 #define WebMediaConfiguration_h
7
8 #include "base/optional.h"
9 #include "public/platform/modules/media_capabilities/WebAudioConfiguration.h"
10 #include "public/platform/modules/media_capabilities/WebVideoConfiguration.h"
11
12 namespace blink {
13
14 enum class MediaConfigurationType {
15 File,
16 MediaSource,
17 };
18
19 // Represents a MediaConfiguration dictionary to be used outside of Blink. At
20 // least one of `audioConfiguration` or `videoConfiguration` will be set.
21 // It is created by Blink and passed to consumers that can assume that all
22 // required fields are properly set.
23 struct WebMediaConfiguration {
24 MediaConfigurationType type;
25
26 base::Optional<WebAudioConfiguration> audioConfiguration;
27 base::Optional<WebVideoConfiguration> videoConfiguration;
28 };
29
30 } // namespace blink
31
32 #endif // WebMediaConfiguration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698