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

Unified Diff: sky/shell/org/domokit/sky/shell/ServiceFactory.java

Issue 969753003: Make it possible for SkyShell embedders to register services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
Index: sky/shell/org/domokit/sky/shell/ServiceFactory.java
diff --git a/sky/shell/org/domokit/sky/shell/ServiceFactory.java b/sky/shell/org/domokit/sky/shell/ServiceFactory.java
new file mode 100644
index 0000000000000000000000000000000000000000..a2d6cb1e66e72ba990409a5c192f098bf585eea4
--- /dev/null
+++ b/sky/shell/org/domokit/sky/shell/ServiceFactory.java
@@ -0,0 +1,19 @@
+// 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.
+
+package org.domokit.sky.shell;
+
+import android.content.Context;
+
+import org.chromium.mojo.system.Core;
+import org.chromium.mojo.system.MessagePipeHandle;
+
+/**
+ * An interface for creating services. Instances of this interface can be
+ * registered with ServiceRegistry and thereby made available to non-Java
+ * clients.
+ **/
+public interface ServiceFactory {
+ public void connectToService(Context context, Core core, MessagePipeHandle pipe);
+}

Powered by Google App Engine
This is Rietveld 408576698