| Index: content/public/common/service_registry.h
|
| diff --git a/content/public/common/service_registry.h b/content/public/common/service_registry.h
|
| index 41edc199ce7a78992a03e9e732b8f0e452a811f5..2ce24c5eb6f8e95d0167846a5c9fd3f535de3041 100644
|
| --- a/content/public/common/service_registry.h
|
| +++ b/content/public/common/service_registry.h
|
| @@ -16,6 +16,11 @@
|
| #include "mojo/public/cpp/bindings/interface_request.h"
|
| #include "mojo/public/cpp/system/core.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +#include <jni.h>
|
| +#include "base/android/scoped_java_ref.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| // A ServiceRegistry exposes local services that have been added using
|
| @@ -72,6 +77,11 @@ class CONTENT_EXPORT ServiceRegistry {
|
| // by AddServiceOverrideForTesting. Used only for testing.
|
| virtual void ClearServiceOverridesForTesting() = 0;
|
|
|
| +#if defined(OS_ANDROID)
|
| + // Returns the corresponding Java object.
|
| + virtual const base::android::ScopedJavaGlobalRef<jobject>& GetJavaObj() = 0;
|
| +#endif
|
| +
|
| private:
|
| template <typename Interface>
|
| static void ForwardToServiceFactory(
|
|
|