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

Side by Side Diff: content/common/associated_interface_provider_impl.cc

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: . Created 4 years, 3 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 "content/common/associated_interface_provider_impl.h"
6
7 namespace content {
8
9 AssociatedInterfaceProviderImpl::AssociatedInterfaceProviderImpl(
10 const mojo::AssociatedGroup& associated_group,
11 mojom::RouteProvider* route_provider,
12 int32_t routing_id) : associated_group_(associated_group) {
13 mojom::AssociatedInterfaceProviderAssociatedRequest request =
14 mojo::GetProxy(&proxy_, &associated_group_);
15 route_provider->GetRoute(routing_id, std::move(request));
16 }
17
18 AssociatedInterfaceProviderImpl::~AssociatedInterfaceProviderImpl() {}
19
20 void AssociatedInterfaceProviderImpl::GetInterface(
21 const std::string& name,
22 mojo::ScopedInterfaceEndpointHandle handle) {
23 mojom::AssociatedInterfaceAssociatedRequest request;
24 request.Bind(std::move(handle));
25 return proxy_->GetAssociatedInterface(name, std::move(request));
26 }
27
28 mojo::AssociatedGroup* AssociatedInterfaceProviderImpl::GetAssociatedGroup() {
29 return &associated_group_;
30 }
31
32 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698