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

Side by Side Diff: ios/web/public/web_state/web_state_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 2013 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 "ios/web/public/web_state/web_state_interface_provider.h"
6
7 #include "services/service_manager/public/cpp/identity.h"
8
9 namespace web {
10
11 WebStateInterfaceProvider::WebStateInterfaceProvider() : binding_(this) {}
12 WebStateInterfaceProvider::~WebStateInterfaceProvider() = default;
13
14 void WebStateInterfaceProvider::Bind(
15 service_manager::mojom::InterfaceProviderRequest request) {
16 binding_.Bind(std::move(request));
17 }
18
19 void WebStateInterfaceProvider::GetInterface(
20 const std::string& interface_name,
21 mojo::ScopedMessagePipeHandle handle) {
22 registry_.BindInterface(service_manager::Identity(), interface_name,
23 std::move(handle));
24 }
25
26 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state_interface_provider.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698