Chromium Code Reviews| 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; |