summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/dom_ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui.h')
-rw-r--r--chrome/browser/dom_ui/dom_ui.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.h b/chrome/browser/dom_ui/dom_ui.h
index e6df31a..42ffe2a 100644
--- a/chrome/browser/dom_ui/dom_ui.h
+++ b/chrome/browser/dom_ui/dom_ui.h
@@ -116,9 +116,13 @@ class DOMUI {
ThemeProvider* GetThemeProvider() const;
- TabContents* tab_contents() const { return tab_contents_; }
+ // May be overridden by DOMUI's which do not have a tab contents.
+ virtual Profile* GetProfile() const;
+
+ // May be overridden by DOMUI's which do not have a tab contents.
+ virtual RenderViewHost* GetRenderViewHost() const;
- Profile* GetProfile() const;
+ TabContents* tab_contents() const { return tab_contents_; }
protected:
void AddMessageHandler(DOMMessageHandler* handler);