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/child/mojo/mojo_application.h" | 5 #include "content/child/mojo/mojo_application.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "content/child/child_process.h" | 8 #include "content/child/child_process.h" |
8 #include "content/common/application_setup.mojom.h" | 9 #include "content/common/application_setup.mojom.h" |
9 #include "content/common/mojo/channel_init.h" | 10 #include "content/common/mojo/channel_init.h" |
10 #include "content/common/mojo/mojo_messages.h" | 11 #include "content/common/mojo/mojo_messages.h" |
11 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
12 #include "mojo/public/cpp/bindings/interface_ptr.h" | 13 #include "mojo/public/cpp/bindings/interface_ptr.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 MojoApplication::MojoApplication( | 17 MojoApplication::MojoApplication( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 50 |
50 mojo::ServiceProviderPtr services; | 51 mojo::ServiceProviderPtr services; |
51 mojo::ServiceProviderPtr exposed_services; | 52 mojo::ServiceProviderPtr exposed_services; |
52 service_registry_.Bind(GetProxy(&exposed_services)); | 53 service_registry_.Bind(GetProxy(&exposed_services)); |
53 application_setup->ExchangeServiceProviders(GetProxy(&services), | 54 application_setup->ExchangeServiceProviders(GetProxy(&services), |
54 exposed_services.Pass()); | 55 exposed_services.Pass()); |
55 service_registry_.BindRemoteServiceProvider(services.Pass()); | 56 service_registry_.BindRemoteServiceProvider(services.Pass()); |
56 } | 57 } |
57 | 58 |
58 } // namespace content | 59 } // namespace content |
OLD | NEW |