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

Unified Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 1352813006: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Got to an almost working state and addressed reviewer comments. Created 5 years, 3 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/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..f9a7a92213a894253376e1c8e0417e778875c48b 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
+ // WebUI applies, returns nullptr. Ownership of the returned pointer will be
+ // passed to the caller.
+ virtual scoped_ptr<WebUIImpl> CreateMainFrameWebUI(const GURL& url);
carlosk 2015/09/30 19:37:27 This seemed an appropriate name for this already a
+
#if defined(OS_WIN)
// Returns the frame's parent's NativeViewAccessible.
virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();

Powered by Google App Engine
This is Rietveld 408576698