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

Side by Side Diff: content/browser/mojo/mojo_application_host.cc

Issue 1686223002: Move InterfaceProvider into the shell::mojom namespace like the rest of the shell interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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/browser/mojo/mojo_application_host.h" 5 #include "content/browser/mojo/mojo_application_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/mojo/mojo_messages.h" 10 #include "content/common/mojo/mojo_messages.h"
(...skipping 10 matching lines...) Expand all
21 mojo::InterfaceRequest<ApplicationSetup> request) 21 mojo::InterfaceRequest<ApplicationSetup> request)
22 : binding_(this, std::move(request)), 22 : binding_(this, std::move(request)),
23 service_registry_(service_registry) {} 23 service_registry_(service_registry) {}
24 24
25 ~ApplicationSetupImpl() override { 25 ~ApplicationSetupImpl() override {
26 } 26 }
27 27
28 private: 28 private:
29 // ApplicationSetup implementation. 29 // ApplicationSetup implementation.
30 void ExchangeInterfaceProviders( 30 void ExchangeInterfaceProviders(
31 mojo::InterfaceRequest<mojo::InterfaceProvider> services, 31 mojo::shell::mojom::InterfaceProviderRequest services,
32 mojo::InterfaceProviderPtr exposed_services) override { 32 mojo::shell::mojom::InterfaceProviderPtr exposed_services) override {
33 service_registry_->Bind(std::move(services)); 33 service_registry_->Bind(std::move(services));
34 service_registry_->BindRemoteServiceProvider(std::move(exposed_services)); 34 service_registry_->BindRemoteServiceProvider(std::move(exposed_services));
35 } 35 }
36 36
37 mojo::Binding<ApplicationSetup> binding_; 37 mojo::Binding<ApplicationSetup> binding_;
38 ServiceRegistryImpl* service_registry_; 38 ServiceRegistryImpl* service_registry_;
39 }; 39 };
40 40
41 } // namespace 41 } // namespace
42 42
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 84 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
85 } 85 }
86 86
87 void MojoApplicationHost::OverrideIOTaskRunnerForTest( 87 void MojoApplicationHost::OverrideIOTaskRunnerForTest(
88 scoped_refptr<base::TaskRunner> io_task_runner) { 88 scoped_refptr<base::TaskRunner> io_task_runner) {
89 io_task_runner_override_ = io_task_runner; 89 io_task_runner_override_ = io_task_runner;
90 } 90 }
91 91
92 92
93 } // namespace content 93 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_app_connection_impl.cc ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698