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

Side by Side Diff: third_party/WebKit/public/platform/modules/media_capabilities/WebAudioConfiguration.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 WebAudioConfiguration_h
6 #define WebAudioConfiguration_h
7
8 #include "base/optional.h"
9 #include "public/platform/WebString.h"
10
11 namespace blink {
12
13 // Represents an AudioConfiguration dictionary to be used outside of Blink.
14 // It is created by Blink and passed to consumers that can assume that all
15 // required fields are properly set.
16 struct WebAudioConfiguration {
17 WebString contentType;
18
19 // `channels` is Optional too but it will be reflected with `isNull()`.
20 WebString channels;
21 base::Optional<unsigned> bitrate;
22 base::Optional<unsigned> samplerate;
23 };
24
25 } // namespace blink
26
27 #endif // WebAudioConfiguration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698