| 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 MediaDecodingConfiguration; | 13 class MediaDecodingConfiguration; |
| 14 class MediaEncodingConfiguration; |
| 14 class ScriptPromise; | 15 class ScriptPromise; |
| 15 class ScriptState; | 16 class ScriptState; |
| 16 | 17 |
| 17 class MediaCapabilities final | 18 class MediaCapabilities final |
| 18 : public GarbageCollectedFinalized<MediaCapabilities>, | 19 : public GarbageCollectedFinalized<MediaCapabilities>, |
| 19 public ScriptWrappable { | 20 public ScriptWrappable { |
| 20 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
| 21 | 22 |
| 22 public: | 23 public: |
| 23 MediaCapabilities(); | 24 MediaCapabilities(); |
| 24 | 25 |
| 25 ScriptPromise decodingInfo(ScriptState*, const MediaDecodingConfiguration&); | 26 ScriptPromise decodingInfo(ScriptState*, const MediaDecodingConfiguration&); |
| 27 ScriptPromise encodingInfo(ScriptState*, const MediaEncodingConfiguration&); |
| 26 | 28 |
| 27 DECLARE_VIRTUAL_TRACE(); | 29 DECLARE_VIRTUAL_TRACE(); |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 } // namespace blink | 32 } // namespace blink |
| 31 | 33 |
| 32 #endif // MediaCapabilities_h | 34 #endif // MediaCapabilities_h |
| OLD | NEW |