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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/ServiceRegistryInterface.java

Issue 1867773002: Expose the Java ServiceRegistryInterface in content_public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-java
Patch Set: Created 4 years, 8 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 | « content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content_public/browser/ServiceRegistryInterface.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/ServiceRegistryInterface.java b/content/public/android/java/src/org/chromium/content_public/browser/ServiceRegistryInterface.java
new file mode 100644
index 0000000000000000000000000000000000000000..22114a52ba2f0a5226550513c187ffa5a6ec7951
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content_public/browser/ServiceRegistryInterface.java
@@ -0,0 +1,29 @@
+// Copyright 2016 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.chromium.content_public.browser;
+
+import org.chromium.mojo.bindings.Interface;
+import org.chromium.mojo.bindings.Interface.Proxy;
+
+/**
+ * The interface for the Java wrapper over Mojo ServiceRegistry held by the browser.
+ */
+public interface ServiceRegistryInterface {
+ /**
+ * The interface that a factory should implement.
+ */
+ interface ImplementationFactory<I extends Interface> {
+ I createImpl();
+ }
+
+ /**
+ * Adds a service factory.
+ *
+ * @param manager The interface manager.
+ * @param factory The service factory.
+ */
+ <I extends Interface, P extends Proxy> void addService(
+ Interface.Manager<I, P> manager, ImplementationFactory<I> factory);
+}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698