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

Unified Diff: content/public/browser/render_frame_host.h

Issue 2692023002: Make PaymentRequestImpl work with RenderFrameHost (Closed)
Patch Set: Remove public from WebContentsImpl 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
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 4bb87a6e1661799620b606dca4faa1db5fc0aba2..fe1fff7a5beee8c369ce2597b0a10f3a520179fd 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -20,6 +20,10 @@
#include "url/gurl.h"
#include "url/origin.h"
+#if defined(OS_ANDROID)
+#include "base/android/scoped_java_ref.h"
+#endif
+
namespace base {
class Value;
}
@@ -224,6 +228,16 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// RenderFrame. See BindingsPolicy for details.
virtual int GetEnabledBindings() const = 0;
+#if defined(OS_ANDROID)
+ virtual base::android::ScopedJavaLocalRef<jobject>
+ GetJavaRenderFrameHost() = 0;
+
+ // Returns an InterfaceProvider for Java-implemented interfaces that are
+ // scoped to this WebContents. This provides access to interfaces implemented
boliu 2017/03/10 19:02:11 fix comment
rwlbuis 2017/03/10 21:40:42 Done.
+ // in Java in the browser process to C++ code in the browser process.
+ virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0;
+#endif // OS_ANDROID
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;

Powered by Google App Engine
This is Rietveld 408576698