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

Side by Side Diff: services/shell/public/cpp/lib/remote_interface_registry.cc

Issue 2075003002: Separate Remote InterfaceProvider again, and add a new client lib type for it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 2016 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 "services/shell/public/cpp/remote_interface_registry.h"
6
7 namespace shell {
8
9 RemoteInterfaceRegistry::RemoteInterfaceRegistry(
10 mojom::InterfaceProviderPtr remote_interfaces)
11 : remote_interfaces_(std::move(remote_interfaces)) {}
12 RemoteInterfaceRegistry::~RemoteInterfaceRegistry() {}
13
14 mojom::InterfaceProvider* RemoteInterfaceRegistry::GetInterfaceProvider() {
15 return remote_interfaces_.get();
16 }
17
18 void RemoteInterfaceRegistry::SetConnectionLostClosure(
19 const base::Closure& connection_lost_closure) {
20 remote_interfaces_.set_connection_error_handler(connection_lost_closure);
21 }
22
23 void RemoteInterfaceRegistry::GetInterface(
24 const std::string& name,
25 mojo::ScopedMessagePipeHandle request_handle) {
26 remote_interfaces_->GetInterface(name, std::move(request_handle));
27 }
28
29 void RemoteInterfaceRegistry::ClearBinders() {
30 binders_.clear();
31 }
32
33 } // namespace shell
OLDNEW
« no previous file with comments | « services/shell/public/cpp/lib/interface_registry.cc ('k') | services/shell/public/cpp/remote_interface_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698