OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |