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

Side by Side Diff: content/child/mojo/mojo_application.cc

Issue 2090773003: Add ability to bind a different InterfaceRegistry/InterfaceProvider to an incoming Connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/child/mojo/mojo_application.h" 5 #include "content/child/mojo/mojo_application.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/application_setup.mojom.h" 10 #include "content/common/application_setup.mojom.h"
(...skipping 17 matching lines...) Expand all
28 application_setup.Bind( 28 application_setup.Bind(
29 mojo::InterfacePtrInfo<mojom::ApplicationSetup>(std::move(handle), 0u)); 29 mojo::InterfacePtrInfo<mojom::ApplicationSetup>(std::move(handle), 0u));
30 30
31 interface_registry_.reset(new shell::InterfaceRegistry(nullptr)); 31 interface_registry_.reset(new shell::InterfaceRegistry(nullptr));
32 shell::mojom::InterfaceProviderPtr exposed_interfaces; 32 shell::mojom::InterfaceProviderPtr exposed_interfaces;
33 interface_registry_->Bind(GetProxy(&exposed_interfaces)); 33 interface_registry_->Bind(GetProxy(&exposed_interfaces));
34 34
35 shell::mojom::InterfaceProviderPtr remote_interfaces; 35 shell::mojom::InterfaceProviderPtr remote_interfaces;
36 shell::mojom::InterfaceProviderRequest remote_interfaces_request = 36 shell::mojom::InterfaceProviderRequest remote_interfaces_request =
37 GetProxy(&remote_interfaces); 37 GetProxy(&remote_interfaces);
38 remote_interfaces_.reset( 38 remote_interfaces_.reset(new shell::InterfaceProvider);
39 new shell::InterfaceProvider(std::move(remote_interfaces))); 39 remote_interfaces_->Bind(std::move(remote_interfaces));
40 application_setup->ExchangeInterfaceProviders( 40 application_setup->ExchangeInterfaceProviders(
41 std::move(remote_interfaces_request), 41 std::move(remote_interfaces_request),
42 std::move(exposed_interfaces)); 42 std::move(exposed_interfaces));
43 } 43 }
44 44
45 } // namespace content 45 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698