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

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

Issue 1139873004: Make android directory for Android-specific bits of SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « sky/shell/platform_view.cc ('k') | sky/shell/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « sky/shell/platform_view.cc ('k') | sky/shell/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698