Index: content/browser/tab_contents/tab_contents.h |
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h |
index efac700a85badae60ba7f315bea812b57404be4e..c54751fdca01d4dfac202756c5ca590e8ab64bb9 100644 |
--- a/content/browser/tab_contents/tab_contents.h |
+++ b/content/browser/tab_contents/tab_contents.h |
@@ -31,7 +31,7 @@ |
#include "content/browser/tab_contents/navigation_entry.h" |
#include "content/browser/tab_contents/page_navigator.h" |
#include "content/browser/tab_contents/render_view_host_manager.h" |
-#include "content/browser/webui/web_ui_factory.h" |
+#include "content/browser/webui/web_ui.h" |
#include "content/common/notification_registrar.h" |
#include "content/common/property_bag.h" |
#include "content/common/renderer_preferences.h" |
@@ -605,7 +605,7 @@ class TabContents : public PageNavigator, |
return &renderer_preferences_; |
} |
- void set_opener_web_ui_type(WebUITypeID opener_web_ui_type) { |
+ void set_opener_web_ui_type(WebUI::WebUITypeID opener_web_ui_type) { |
opener_web_ui_type_ = opener_web_ui_type; |
} |
@@ -704,6 +704,9 @@ class TabContents : public PageNavigator, |
return safebrowsing_detection_host_.get(); |
} |
+ // Query the WebUIFactory for the WebUITypeID for the current URL. |
+ WebUI::WebUITypeID GetWebUITypeForCurrentState(); |
+ |
protected: |
// from RenderViewHostDelegate. |
virtual bool OnMessageReceived(const IPC::Message& message); |
@@ -1190,7 +1193,7 @@ class TabContents : public PageNavigator, |
// If this tab was created from a renderer using window.open, this will be |
// non-NULL and represent the WebUI of the opening renderer. |
- WebUITypeID opener_web_ui_type_; |
+ WebUI::WebUITypeID opener_web_ui_type_; |
// The time that we started to create the new tab page. |
base::TimeTicks new_tab_start_time_; |