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

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

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
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/interface_provider.h"
6
7 namespace shell {
8
9 InterfaceProvider::InterfaceProvider(
Ken Rockot(use gerrit already) 2016/06/21 16:16:23 nit: bad indentation
10 mojom::InterfaceProviderPtr interface_provider)
11 : interface_provider_(std::move(interface_provider)),
12 weak_factory_(this) {}
13 InterfaceProvider::~InterfaceProvider() {}
Ken Rockot(use gerrit already) 2016/06/21 16:16:23 nit: bad indentation
14
15 void InterfaceProvider::SetConnectionLostClosure(
16 const base::Closure& connection_lost_closure) {
17 interface_provider_.set_connection_error_handler(connection_lost_closure);
18 }
19
20 base::WeakPtr<InterfaceProvider> InterfaceProvider::GetWeakPtr() {
21 return weak_factory_.GetWeakPtr();
22 }
23
24 void InterfaceProvider::GetInterface(
25 const std::string& name,
26 mojo::ScopedMessagePipeHandle request_handle) {
27 interface_provider_->GetInterface(name, std::move(request_handle));
28 }
29
30 void InterfaceProvider::ClearBinders() {
31 binders_.clear();
32 }
33
34 } // namespace shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698