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

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

Issue 2805553004: Wire up MediaCapabilities is_supported to MimeUtil (Closed)
Patch Set: Remove test for theora - not supported on android Created 3 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 WebAudioConfiguration_h 5 #ifndef WebAudioConfiguration_h
6 #define WebAudioConfiguration_h 6 #define WebAudioConfiguration_h
7 7
8 #include "base/optional.h" 8 #include "base/optional.h"
9 #include "public/platform/WebString.h" 9 #include "public/platform/WebString.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 // Represents an AudioConfiguration dictionary to be used outside of Blink. 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 14 // It is created by Blink and passed to consumers that can assume that all
15 // required fields are properly set. 15 // required fields are properly set.
16 struct WebAudioConfiguration { 16 struct WebAudioConfiguration {
17 WebString content_type; 17 WebString mime_type;
18 WebString codec;
18 19
19 // `channels` is Optional too but it will be reflected with `isNull()`. 20 // `channels` is Optional too but it will be reflected with `isNull()`.
20 WebString channels; 21 WebString channels;
21 base::Optional<unsigned> bitrate; 22 base::Optional<unsigned> bitrate;
22 base::Optional<unsigned> samplerate; 23 base::Optional<unsigned> samplerate;
23 }; 24 };
24 25
25 } // namespace blink 26 } // namespace blink
26 27
27 #endif // WebAudioConfiguration_h 28 #endif // WebAudioConfiguration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698