Index: third_party/WebKit/Source/modules/media_capabilities/MediaCapabilities.cpp |
diff --git a/third_party/WebKit/Source/modules/media_capabilities/MediaCapabilities.cpp b/third_party/WebKit/Source/modules/media_capabilities/MediaCapabilities.cpp |
index 3e7a7f85556c0771d63fb57dd303ef94ae0fe1b9..61926a8c59054e0ab3e84cfdb5f2b9ad53b13fd7 100644 |
--- a/third_party/WebKit/Source/modules/media_capabilities/MediaCapabilities.cpp |
+++ b/third_party/WebKit/Source/modules/media_capabilities/MediaCapabilities.cpp |
@@ -8,12 +8,12 @@ |
#include "bindings/core/v8/ScriptPromise.h" |
#include "bindings/core/v8/ScriptPromiseResolver.h" |
#include "bindings/core/v8/ScriptState.h" |
+#include "modules/media_capabilities/MediaCapabilitiesInfo.h" |
#include "modules/media_capabilities/MediaConfiguration.h" |
-#include "modules/media_capabilities/MediaDecodingAbility.h" |
#include "public/platform/Platform.h" |
#include "public/platform/modules/media_capabilities/WebMediaCapabilitiesClient.h" |
+#include "public/platform/modules/media_capabilities/WebMediaCapabilitiesInfo.h" |
#include "public/platform/modules/media_capabilities/WebMediaConfiguration.h" |
-#include "public/platform/modules/media_capabilities/WebMediaDecodingAbility.h" |
namespace blink { |
@@ -88,15 +88,15 @@ WebMediaConfiguration ToWebMediaConfiguration( |
MediaCapabilities::MediaCapabilities() = default; |
-ScriptPromise MediaCapabilities::query( |
+ScriptPromise MediaCapabilities::decodingInfo( |
ScriptState* script_state, |
const MediaConfiguration& configuration) { |
ScriptPromiseResolver* resolver = ScriptPromiseResolver::Create(script_state); |
ScriptPromise promise = resolver->Promise(); |
- Platform::Current()->MediaCapabilitiesClient()->Query( |
+ Platform::Current()->MediaCapabilitiesClient()->DecodingInfo( |
ToWebMediaConfiguration(configuration), |
- WTF::MakeUnique<CallbackPromiseAdapter<MediaDecodingAbility, void>>( |
+ WTF::MakeUnique<CallbackPromiseAdapter<MediaCapabilitiesInfo, void>>( |
resolver)); |
return promise; |