Index: content/browser/frame_host/render_frame_host_delegate.h |
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h |
index 0f8e555d30cbc4f01c1ee17cd969278044a0de4e..70bff958b58b7fa90913ca7e90977effba89b2b8 100644 |
--- a/content/browser/frame_host/render_frame_host_delegate.h |
+++ b/content/browser/frame_host/render_frame_host_delegate.h |
@@ -9,6 +9,7 @@ |
#include "base/basictypes.h" |
#include "base/i18n/rtl.h" |
+#include "content/browser/webui/web_ui_impl.h" |
#include "content/common/content_export.h" |
#include "content/common/frame_message_enums.h" |
#include "content/public/browser/site_instance.h" |
@@ -163,6 +164,11 @@ class CONTENT_EXPORT RenderFrameHostDelegate { |
// https://crbug.com/330264. |
virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} |
+ // Creates a WebUI object for a main frame navigating to the given URL. If no |
clamy
2015/10/02 14:20:01
Is this only called by main frames? Do subframes c
carlosk
2015/10/05 16:59:57
Gah! I missed updating this comment!
Clarifying:
|
+ // WebUI applies, returns nullptr. Ownership of the returned pointer will be |
+ // passed to the caller. |
+ virtual scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url); |
+ |
#if defined(OS_WIN) |
// Returns the frame's parent's NativeViewAccessible. |
virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |