| 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);
|
| +}
|
|
|