Index: media/blink/webmediacapabilitiesclient_impl.cc |
diff --git a/media/blink/webmediacapabilitiesclient_impl.cc b/media/blink/webmediacapabilitiesclient_impl.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7bd0fdb5bbab17f34e85b1d7cb28e7e292421142 |
--- /dev/null |
+++ b/media/blink/webmediacapabilitiesclient_impl.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "media/blink/webmediacapabilitiesclient_impl.h" |
+ |
+#include "third_party/WebKit/public/platform/modules/media_capabilities/WebMediaDecodingAbility.h" |
+ |
+namespace media { |
+ |
+WebMediaCapabilitiesClientImpl::WebMediaCapabilitiesClientImpl() = default; |
+ |
+WebMediaCapabilitiesClientImpl::~WebMediaCapabilitiesClientImpl() = default; |
+ |
+void WebMediaCapabilitiesClientImpl::query( |
+ const blink::WebMediaConfiguration& configuration, |
+ std::unique_ptr<blink::WebMediaCapabilitiesQueryCallbacks> callbacks) { |
+ // TODO(chcunningham, mlamouri): this is a dummy implementation that returns |
+ // true for all the fields. |
+ std::unique_ptr<blink::WebMediaDecodingAbility> ability( |
+ new blink::WebMediaDecodingAbility()); |
+ ability->supported = true; |
+ ability->smooth = true; |
+ ability->powerEfficient = true; |
+ callbacks->onSuccess(std::move(ability)); |
+} |
+ |
+} // namespace media |