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

Unified Diff: content/renderer/media/media_renderer_service_provider.cc

Issue 712463004: media: Support MojoRendererService in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BUILD.gn. Created 5 years, 11 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
« no previous file with comments | « content/renderer/media/media_renderer_service_provider.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_renderer_service_provider.cc
diff --git a/content/renderer/media/media_renderer_service_provider.cc b/content/renderer/media/media_renderer_service_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4f3b8f2effb04a38b15d8c4c25a0de41fdfed530
--- /dev/null
+++ b/content/renderer/media/media_renderer_service_provider.cc
@@ -0,0 +1,23 @@
+// 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/common/service_registry.h"
+#include "content/renderer/media/media_renderer_service_provider.h"
+
+namespace content {
+
+MediaRendererServiceProvider::MediaRendererServiceProvider(
+ ServiceRegistry* service_registry)
+ : service_registry_(service_registry) {
+}
+
+MediaRendererServiceProvider::~MediaRendererServiceProvider() {
+}
+
+void MediaRendererServiceProvider::ConnectToService(
+ mojo::InterfacePtr<mojo::MediaRenderer>* media_renderer_ptr) {
+ service_registry_->ConnectToRemoteService(media_renderer_ptr);
+}
+
+} // namespace content
« no previous file with comments | « content/renderer/media/media_renderer_service_provider.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698