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

Unified Diff: content/public/renderer/content_media_client.cc

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: 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: content/public/renderer/content_media_client.cc
diff --git a/content/public/renderer/content_media_client.cc b/content/public/renderer/content_media_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..20829fcbded3ba85c13469f3bf457a08bee93838
--- /dev/null
+++ b/content/public/renderer/content_media_client.cc
@@ -0,0 +1,41 @@
+// Copyright 2014 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 "content/public/renderer/content_media_client.h"
+
+#include "base/logging.h"
+
+namespace content {
+
+ContentMediaClient::ContentMediaClient(
+ content::ContentRendererClient* content_renderer_client)
+ : content_renderer_client_(content_renderer_client) {
+ DCHECK(content_renderer_client);
+}
+
+ContentMediaClient::~ContentMediaClient() {}
+
+void ContentMediaClient::AddSupportedKeySystems(
+ std::vector<std::unique_ptr<media::KeySystemProperties>>*
+ key_systems_properties) {
+ DVLOG(2) << __func__;
+ DCHECK(thread_checker_.CalledOnValidThread());
+
+ content_renderer_client_->AddSupportedKeySystems(key_systems_properties);
+}
+
+void ContentMediaClient::RecordRapporURL(const std::string& metric,
+ const GURL& url) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ content_renderer_client_->RecordRapporURL(metric, url);
+}
+
+bool ContentMediaClient::IsSupportedVideoConfig(
+ const media::VideoConfig& config) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ // Assumes no customization of media's capabilities.
+ return media::IsSupportedVideoConfig(config);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698