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

Unified Diff: content/browser/android/java_interfaces_impl.cc

Issue 2692023002: Make PaymentRequestImpl work with RenderFrameHost (Closed)
Patch Set: Rebase after https://codereview.chromium.org/2708243004 Created 3 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
« no previous file with comments | « content/browser/android/java_interfaces_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/java_interfaces_impl.cc
diff --git a/content/browser/android/java_interfaces_impl.cc b/content/browser/android/java_interfaces_impl.cc
index 4169654f5bf6d231bf8373d5b45332dc04994017..7bf764f5949e18356cae280377090a8eaa3f9ab2 100644
--- a/content/browser/android/java_interfaces_impl.cc
+++ b/content/browser/android/java_interfaces_impl.cc
@@ -12,6 +12,7 @@
#include "base/android/jni_android.h"
#include "base/memory/singleton.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "jni/InterfaceRegistrarImpl_jni.h"
#include "mojo/public/cpp/system/message_pipe.h"
@@ -60,4 +61,13 @@ void BindInterfaceRegistryForWebContents(
web_contents->GetJavaWebContents().obj());
}
+void BindInterfaceRegistryForRenderFrameHost(
+ service_manager::mojom::InterfaceProviderRequest request,
+ RenderFrameHost* render_frame_host) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_InterfaceRegistrarImpl_createInterfaceRegistryForRenderFrameHost(
+ env, request.PassMessagePipe().release().value(),
+ render_frame_host->GetJavaRenderFrameHost().obj());
jam 2017/03/15 17:12:11 since this new method is only called from inside c
rwlbuis 2017/03/15 17:52:53 Done.
+}
+
} // namespace content
« no previous file with comments | « content/browser/android/java_interfaces_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698