OLD | NEW |
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 |
OLD | NEW |