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 #ifndef SKY_SHELL_SERVICE_PROVIDER_H_ |
| 6 #define SKY_SHELL_SERVICE_PROVIDER_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "mojo/public/cpp/system/core.h" |
| 10 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 11 |
| 12 namespace base { |
| 13 class SingleThreadTaskRunner; |
| 14 } |
| 15 |
| 16 namespace sky { |
| 17 namespace shell { |
| 18 |
| 19 class ServiceProviderContext { |
| 20 public: |
| 21 #if defined(OS_ANDROID) |
| 22 ServiceProviderContext( |
| 23 scoped_refptr<base::SingleThreadTaskRunner> runner) |
| 24 : java_task_runner(runner.Pass()) {} |
| 25 |
| 26 scoped_refptr<base::SingleThreadTaskRunner> java_task_runner; |
| 27 #endif |
| 28 }; |
| 29 |
| 30 // Implemented in platform_service_provider.cc for each platform. |
| 31 mojo::ServiceProviderPtr CreateServiceProvider(ServiceProviderContext* context); |
| 32 |
| 33 } // namespace shell |
| 34 } // namespace sky |
| 35 |
| 36 #endif // SKY_SHELL_SERVICE_PROVIDER_H_ |
OLD | NEW |