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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/platform_view.cc ('k') | sky/shell/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/service_provider.h
diff --git a/sky/shell/service_provider.h b/sky/shell/service_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..87460b8c4b32888b4a3f4a166621630e8ece2c4b
--- /dev/null
+++ b/sky/shell/service_provider.h
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKY_SHELL_SERVICE_PROVIDER_H_
+#define SKY_SHELL_SERVICE_PROVIDER_H_
+
+#include "base/memory/ref_counted.h"
+#include "mojo/public/cpp/system/core.h"
+#include "mojo/public/interfaces/application/service_provider.mojom.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+}
+
+namespace sky {
+namespace shell {
+
+class ServiceProviderContext {
+ public:
+#if defined(OS_ANDROID)
+ ServiceProviderContext(
+ scoped_refptr<base::SingleThreadTaskRunner> runner)
+ : java_task_runner(runner.Pass()) {}
+
+ scoped_refptr<base::SingleThreadTaskRunner> java_task_runner;
+#endif
+};
+
+// Implemented in platform_service_provider.cc for each platform.
+mojo::ServiceProviderPtr CreateServiceProvider(ServiceProviderContext* context);
+
+} // namespace shell
+} // namespace sky
+
+#endif // SKY_SHELL_SERVICE_PROVIDER_H_
« 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