OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "sky/engine/config.h" | |
6 #include "sky/engine/wtf/Assertions.h" | 5 #include "sky/engine/wtf/Assertions.h" |
7 #include "sky/shell/service_provider.h" | 6 #include "sky/shell/service_provider.h" |
8 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
9 #include "base/bind.h" | 8 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
11 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
12 #include "base/location.h" | 11 #include "base/location.h" |
13 #include "mojo/public/cpp/application/service_provider_impl.h" | 12 #include "mojo/public/cpp/application/service_provider_impl.h" |
14 #include "sky/services/ns_net/network_service_impl.h" | 13 #include "sky/services/ns_net/network_service_impl.h" |
15 | 14 |
(...skipping 20 matching lines...) Expand all Loading... |
36 auto request = mojo::MakeRequest<mojo::ServiceProvider>(pipe.handle1.Pass()); | 35 auto request = mojo::MakeRequest<mojo::ServiceProvider>(pipe.handle1.Pass()); |
37 context->platform_task_runner->PostTask( | 36 context->platform_task_runner->PostTask( |
38 FROM_HERE, | 37 FROM_HERE, |
39 base::Bind(CreatePlatformServiceProvider, base::Passed(request.Pass()))); | 38 base::Bind(CreatePlatformServiceProvider, base::Passed(request.Pass()))); |
40 return mojo::MakeProxy( | 39 return mojo::MakeProxy( |
41 mojo::InterfacePtrInfo<mojo::ServiceProvider>(pipe.handle0.Pass(), 0u)); | 40 mojo::InterfacePtrInfo<mojo::ServiceProvider>(pipe.handle0.Pass(), 0u)); |
42 } | 41 } |
43 | 42 |
44 } // namespace shell | 43 } // namespace shell |
45 } // namespace sky | 44 } // namespace sky |
OLD | NEW |