OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/bind.h" |
| 6 #include "base/trace_event/trace_event.h" |
| 7 #include "mojo/public/cpp/bindings/interface_request.h" |
| 8 #include "sky/shell/service_provider.h" |
| 9 |
| 10 namespace sky { |
| 11 namespace shell { |
| 12 |
| 13 mojo::ServiceProviderPtr CreateServiceProvider( |
| 14 ServiceProviderContext* context) { |
| 15 mojo::MessagePipe pipe; |
| 16 // TODO(abarth): Wire pipe.handle1 up to something. |
| 17 return mojo::MakeProxy( |
| 18 mojo::InterfacePtrInfo<mojo::ServiceProvider>(pipe.handle0.Pass(), 0u)); |
| 19 } |
| 20 |
| 21 } // namespace shell |
| 22 } // namespace sky |
OLD | NEW |