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

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

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo
Patch Set: thestig@ & esprehn@ comments 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/content_browser.gypi ('k') | content/public/browser/android/service_registry_android.h » ('j') | 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/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());
}
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/android/service_registry_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698