diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 18:04:36 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 18:04:36 +0000 |
commit | cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c (patch) | |
tree | 3e93a4cf6b79d02a8d7382482c0503f1947d65d0 /chrome/browser/dom_ui | |
parent | 86cf1066d2361c94f5d56f51188e10f5b4e90b02 (diff) | |
download | chromium_src-cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c.zip chromium_src-cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c.tar.gz chromium_src-cf430e2ea4fb5a3e65cb4ca16061ac6663d0ab1c.tar.bz2 |
Fix for bug where we would not create ExtensionFunctionDispatcher
instances for ExtensionDOMUI if RenderView was reused.
BUG=16853
TEST=Added browser test
Review URL: http://codereview.chromium.org/155592
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.h b/chrome/browser/dom_ui/dom_ui.h index fad04e5..d5204b1 100644 --- a/chrome/browser/dom_ui/dom_ui.h +++ b/chrome/browser/dom_ui/dom_ui.h @@ -29,8 +29,16 @@ class DOMUI { explicit DOMUI(TabContents* contents); virtual ~DOMUI(); + // Called by RenderViewHost when the RenderView is first created. This is + // *not* called for every page load because in some cases + // RenderViewHostManager will reuse RenderView instances. In those cases, + // RenderViewReused will be called instead. virtual void RenderViewCreated(RenderViewHost* render_view_host) {} + // Called by RenderViewHostManager when a RenderView is reused to display a + // page. + virtual void RenderViewReused(RenderViewHost* render_view_host) {} + // Called from DOMUIContents. virtual void ProcessDOMUIMessage(const std::string& message, const std::string& content, |