Index: content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java b/content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java |
index 21a7aac490369061f4e730d19833742575803bd1..b81267b148a2e7494b2d1a30a147b9123ed7c0de 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java |
@@ -19,11 +19,20 @@ import org.chromium.mojo.system.impl.CoreImpl; |
@JNINamespace("content") |
public class ServiceRegistry { |
- interface ImplementationFactory<I extends Interface> { |
+ /** |
+ * The interface that a factory should implement. |
+ */ |
+ public interface ImplementationFactory<I extends Interface> { |
I createImpl(); |
} |
- <I extends Interface, P extends Proxy> void addService( |
+ /** |
+ * Adds a service factory. |
+ * |
+ * @param manager The interface manager. |
+ * @param factory The service factory. |
+ */ |
+ public <I extends Interface, P extends Proxy> void addService( |
Interface.Manager<I, P> manager, ImplementationFactory<I> factory) { |
nativeAddService(mNativeServiceRegistryAndroid, manager, factory, manager.getName()); |
} |