OLD | NEW |
| (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 | |
OLD | NEW |