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

Side by Side Diff: content/renderer/mojo/blink_interface_registry_impl.cc

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/mojo/blink_interface_registry_impl.h" 5 #include "content/renderer/mojo/blink_interface_registry_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "mojo/public/cpp/system/message_pipe.h" 10 #include "mojo/public/cpp/system/message_pipe.h"
11 #include "services/service_manager/public/cpp/interface_registry.h" 11 #include "services/service_manager/public/cpp/binder_registry.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 BlinkInterfaceRegistryImpl::BlinkInterfaceRegistryImpl( 15 BlinkInterfaceRegistryImpl::BlinkInterfaceRegistryImpl(
16 base::WeakPtr<service_manager::InterfaceRegistry> interface_registry) 16 base::WeakPtr<service_manager::BinderRegistry> interface_registry)
17 : interface_registry_(interface_registry) {} 17 : interface_registry_(interface_registry) {}
18 18
19 BlinkInterfaceRegistryImpl::~BlinkInterfaceRegistryImpl() = default; 19 BlinkInterfaceRegistryImpl::~BlinkInterfaceRegistryImpl() = default;
20 20
21 void BlinkInterfaceRegistryImpl::AddInterface( 21 void BlinkInterfaceRegistryImpl::AddInterface(
22 const char* name, 22 const char* name,
23 const blink::InterfaceFactory& factory) { 23 const blink::InterfaceFactory& factory) {
24 if (!interface_registry_) 24 if (!interface_registry_)
25 return; 25 return;
26 26
27 interface_registry_->AddInterface(name, factory); 27 interface_registry_->AddInterface(name, factory);
28 } 28 }
29 29
30 } // namespace content 30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698