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

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

Issue 2681933002: Add Java wrapper for RenderFrameHost (Closed)
Patch Set: Fix potential dtor problem Created 3 years, 10 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 d78ba06e1c48ee5f83b9daa3e470db4e9cc443f1..6d89d3d3abc9fab34dcdc0784475ef6f2f1780cd 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;
}
@@ -230,6 +234,11 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// RenderFrame. See BindingsPolicy for details.
virtual int GetEnabledBindings() const = 0;
+#if defined(OS_ANDROID)
+ CONTENT_EXPORT static RenderFrameHost* FromJavaRenderFrameHost(
boliu 2017/02/16 01:00:58 this should be on RenderFrameHostAndroid
rwlbuis 2017/03/01 21:53:57 Ok, turned out we do not need it.
+ const base::android::JavaRef<jobject>& jrender_frame_host_android);
+#endif
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;

Powered by Google App Engine
This is Rietveld 408576698