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

Unified Diff: media/mojo/services/media_interface_provider.cc

Issue 2847743003: Eliminate InterfaceRegistry (Closed)
Patch Set: . Created 3 years, 8 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 | « media/mojo/services/media_interface_provider.h ('k') | media/mojo/services/media_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_interface_provider.cc
diff --git a/media/mojo/services/media_interface_provider.cc b/media/mojo/services/media_interface_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1e090fd7eca4532adec802a96d307992ed2b6a36
--- /dev/null
+++ b/media/mojo/services/media_interface_provider.cc
@@ -0,0 +1,24 @@
+// 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/mojo/services/media_interface_provider.h"
+
+#include "services/service_manager/public/cpp/identity.h"
+
+namespace media {
+
+MediaInterfaceProvider::MediaInterfaceProvider(
+ service_manager::mojom::InterfaceProviderRequest request)
+ : binding_(this, std::move(request)) {}
+
+MediaInterfaceProvider::~MediaInterfaceProvider() = default;
+
+void MediaInterfaceProvider::GetInterface(
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle handle) {
+ registry_.BindInterface(service_manager::Identity(), interface_name,
+ std::move(handle));
+}
+
+} // namespace media
« no previous file with comments | « media/mojo/services/media_interface_provider.h ('k') | media/mojo/services/media_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698