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

Unified Diff: content/public/common/service_registry.h

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo
Patch Set: Register PaymentRequest with render process Created 4 years, 9 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
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(

Powered by Google App Engine
This is Rietveld 408576698