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

Side by Side Diff: media/mojo/services/media_interface_provider.cc

Issue 2847743003: Eliminate InterfaceRegistry (Closed)
Patch Set: . Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/mojo/services/media_interface_provider.h"
6
7 #include "services/service_manager/public/cpp/identity.h"
8
9 namespace media {
10
11 MediaInterfaceProvider::MediaInterfaceProvider(
12 service_manager::mojom::InterfaceProviderRequest request)
13 : binding_(this, std::move(request)) {}
14
15 MediaInterfaceProvider::~MediaInterfaceProvider() = default;
16
17 void MediaInterfaceProvider::GetInterface(
18 const std::string& interface_name,
19 mojo::ScopedMessagePipeHandle handle) {
20 registry_.BindInterface(service_manager::Identity(), interface_name,
21 std::move(handle));
22 }
23
24 } // namespace media
OLDNEW
« 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