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 MediaCapabilities_h | 5 #ifndef MediaCapabilities_h |
6 #define MediaCapabilities_h | 6 #define MediaCapabilities_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "platform/heap/Visitor.h" | 9 #include "platform/heap/Visitor.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class MediaConfiguration; | 13 class MediaDecodingConfiguration; |
14 class ScriptPromise; | 14 class ScriptPromise; |
15 class ScriptState; | 15 class ScriptState; |
16 | 16 |
17 class MediaCapabilities final | 17 class MediaCapabilities final |
18 : public GarbageCollectedFinalized<MediaCapabilities>, | 18 : public GarbageCollectedFinalized<MediaCapabilities>, |
19 public ScriptWrappable { | 19 public ScriptWrappable { |
20 DEFINE_WRAPPERTYPEINFO(); | 20 DEFINE_WRAPPERTYPEINFO(); |
21 | 21 |
22 public: | 22 public: |
23 MediaCapabilities(); | 23 MediaCapabilities(); |
24 | 24 |
25 ScriptPromise decodingInfo(ScriptState*, const MediaConfiguration&); | 25 ScriptPromise decodingInfo(ScriptState*, const MediaDecodingConfiguration&); |
26 | 26 |
27 DECLARE_VIRTUAL_TRACE(); | 27 DECLARE_VIRTUAL_TRACE(); |
28 }; | 28 }; |
29 | 29 |
30 } // namespace blink | 30 } // namespace blink |
31 | 31 |
32 #endif // MediaCapabilities_h | 32 #endif // MediaCapabilities_h |
OLD | NEW |