| OLD | NEW |
| (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 #include "modules/mediacapabilities/MediaCapabilities.h" | |
| 6 | |
| 7 #include "bindings/core/v8/ScriptPromise.h" | |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" | |
| 9 #include "bindings/core/v8/ScriptState.h" | |
| 10 #include "modules/mediacapabilities/MediaConfiguration.h" | |
| 11 #include "modules/mediacapabilities/MediaDecodingAbility.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 MediaCapabilities::MediaCapabilities() = default; | |
| 16 | |
| 17 ScriptPromise MediaCapabilities::query( | |
| 18 ScriptState* scriptState, | |
| 19 const MediaConfiguration& configuration) { | |
| 20 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); | |
| 21 ScriptPromise promise = resolver->promise(); | |
| 22 resolver->resolve(new MediaDecodingAbility()); | |
| 23 return promise; | |
| 24 } | |
| 25 | |
| 26 DEFINE_TRACE(MediaCapabilities) {} | |
| 27 | |
| 28 } // namespace blink | |
| OLD | NEW |