Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Side by Side Diff: sky/shell/service_provider.h

Issue 1169983005: sky/shell updates for Android and iOS (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef SKY_SHELL_SERVICE_PROVIDER_H_ 5 #ifndef SKY_SHELL_SERVICE_PROVIDER_H_
6 #define SKY_SHELL_SERVICE_PROVIDER_H_ 6 #define SKY_SHELL_SERVICE_PROVIDER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "mojo/public/cpp/system/core.h" 9 #include "mojo/public/cpp/system/core.h"
10 #include "mojo/public/interfaces/application/service_provider.mojom.h" 10 #include "mojo/public/interfaces/application/service_provider.mojom.h"
11 11
12 namespace base { 12 namespace base {
13 class SingleThreadTaskRunner; 13 class SingleThreadTaskRunner;
14 } 14 }
15 15
16 namespace sky { 16 namespace sky {
17 namespace shell { 17 namespace shell {
18 18
19 class ServiceProviderContext { 19 class ServiceProviderContext {
20 public: 20 public:
21 #if defined(OS_ANDROID) 21 ServiceProviderContext(scoped_refptr<base::SingleThreadTaskRunner> runner)
22 ServiceProviderContext( 22 : platform_task_runner(runner.Pass()) {}
23 scoped_refptr<base::SingleThreadTaskRunner> runner)
24 : java_task_runner(runner.Pass()) {}
25 23
26 scoped_refptr<base::SingleThreadTaskRunner> java_task_runner; 24 scoped_refptr<base::SingleThreadTaskRunner> platform_task_runner;
27 #endif
28 }; 25 };
29 26
30 // Implemented in platform_service_provider.cc for each platform. 27 // Implemented in platform_service_provider.cc for each platform.
31 mojo::ServiceProviderPtr CreateServiceProvider(ServiceProviderContext* context); 28 mojo::ServiceProviderPtr CreateServiceProvider(ServiceProviderContext* context);
32 29
33 } // namespace shell 30 } // namespace shell
34 } // namespace sky 31 } // namespace sky
35 32
36 #endif // SKY_SHELL_SERVICE_PROVIDER_H_ 33 #endif // SKY_SHELL_SERVICE_PROVIDER_H_
OLDNEW
« sky/shell/BUILD.gn ('K') | « sky/shell/platform_view.cc ('k') | sky/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698