Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: media/blink/webmediacapabilitiesclient_impl.cc

Issue 2706313002: Media Capabilities: add plumbing between Blink and media/blink/. (Closed)
Patch Set: oups Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698