Chromium Code Reviews| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/child/child_process.h" | 10 #include "content/child/child_process.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 weak_factory_.GetWeakPtr())); | 48 weak_factory_.GetWeakPtr())); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void MojoApplication::OnMessagePipeCreated(mojo::ScopedMessagePipeHandle pipe) { | 51 void MojoApplication::OnMessagePipeCreated(mojo::ScopedMessagePipeHandle pipe) { |
| 52 DCHECK(pipe.is_valid()); | 52 DCHECK(pipe.is_valid()); |
| 53 | 53 |
| 54 ApplicationSetupPtr application_setup; | 54 ApplicationSetupPtr application_setup; |
| 55 application_setup.Bind( | 55 application_setup.Bind( |
| 56 mojo::InterfacePtrInfo<ApplicationSetup>(std::move(pipe), 0u)); | 56 mojo::InterfacePtrInfo<ApplicationSetup>(std::move(pipe), 0u)); |
| 57 | 57 |
| 58 mojo::ServiceProviderPtr services; | 58 mojo::InterfaceProviderPtr services; |
|
Marijn Kruisselbrink
2016/02/10 00:41:43
drive-by comment: in some places you've renamed se
| |
| 59 mojo::ServiceProviderPtr exposed_services; | 59 mojo::InterfaceProviderPtr exposed_services; |
| 60 service_registry_.Bind(GetProxy(&exposed_services)); | 60 service_registry_.Bind(GetProxy(&exposed_services)); |
| 61 application_setup->ExchangeServiceProviders(GetProxy(&services), | 61 application_setup->ExchangeInterfaceProviders(GetProxy(&services), |
| 62 std::move(exposed_services)); | 62 std::move(exposed_services)); |
| 63 service_registry_.BindRemoteServiceProvider(std::move(services)); | 63 service_registry_.BindRemoteServiceProvider(std::move(services)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace content | 66 } // namespace content |
| OLD | NEW |