| Index: content/browser/frame_host/render_frame_host_impl.h
|
| diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
|
| index c2bc78d2f8ddea0e3597663fdea3163210e36d68..b184321be670841ba1343397d215a7be2b7a8c9b 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.h
|
| +++ b/content/browser/frame_host/render_frame_host_impl.h
|
| @@ -16,6 +16,7 @@
|
| #include "base/time/time.h"
|
| #include "content/browser/accessibility/browser_accessibility_manager.h"
|
| #include "content/browser/site_instance_impl.h"
|
| +#include "content/browser/webui/web_ui_impl.h"
|
| #include "content/common/accessibility_mode_enums.h"
|
| #include "content/common/ax_content_node_data.h"
|
| #include "content/common/content_export.h"
|
| @@ -214,6 +215,12 @@ class CONTENT_EXPORT RenderFrameHostImpl
|
| RenderFrameHostDelegate* delegate() { return delegate_; }
|
| FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
|
|
|
| + // Returns the associated WebUI or null if none applies.
|
| + WebUIImpl* web_ui() const { return web_ui_.get(); }
|
| +
|
| + // Returns the associated WebUI type.
|
| + WebUI::TypeID web_ui_type() const { return web_ui_type_; }
|
| +
|
| // Returns this RenderFrameHost's loading state. This method is only used by
|
| // FrameTreeNode. The proper way to check whether a frame is loading is to
|
| // call FrameTreeNode::IsLoading.
|
| @@ -469,6 +476,15 @@ class CONTENT_EXPORT RenderFrameHostImpl
|
| // addition, its associated RenderWidgetHost has to be focused.
|
| bool IsFocused();
|
|
|
| + // Updates the WebUI data of this RenderFrameHost based on the
|
| + // provided |dest_url|, setting to either none, a new instance or reuses the
|
| + // current active one. Returns true if there was a change of WebUI.
|
| + // If this is a history navigation its NavigationEntry bindings should be
|
| + // provided through |entry_bindings| to allow verifying that they are not
|
| + // being set differently this time around. Otherwise |entry_bindings| should
|
| + // be set to NavigationEntryImpl::kInvalidBindings so that no checks are made.
|
| + bool UpdateWebUI(const GURL& dest_url, int entry_bindings);
|
| +
|
| // Returns the Mojo ImageDownloader service.
|
| const image_downloader::ImageDownloaderPtr& GetMojoImageDownloader();
|
|
|
| @@ -628,6 +644,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
|
| const content::StartNavigationParams& start_params,
|
| const content::RequestNavigationParams& request_params);
|
|
|
| + // Resets all active and pending WebUI related fields.
|
| + void ResetWebUI();
|
| +
|
| // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
|
| // refcount that calls Shutdown when it reaches zero. This allows each
|
| // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
|
| @@ -796,6 +815,12 @@ class CONTENT_EXPORT RenderFrameHostImpl
|
| // NavigationHandle for it is owned by the NavigationRequest.
|
| scoped_ptr<NavigationHandleImpl> navigation_handle_;
|
|
|
| + // The associated WebUIImpl and its type. They will be set if the current
|
| + // document is from WebUI source. Otherwise they will be null and
|
| + // WebUI::kNoWebUI, respectively.
|
| + scoped_ptr<WebUIImpl> web_ui_;
|
| + WebUI::TypeID web_ui_type_;
|
| +
|
| // NOTE: This must be the last member.
|
| base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
|
|
|
|
|