| 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..72d6285f365caca2d940830f4544b1b7406eefb9 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"
|
| @@ -84,6 +84,7 @@ class TabContentsObserver;
|
| class TabContentsSSLHelper;
|
| class TabContentsView;
|
| class URLPattern;
|
| +class WebUISource;
|
| struct RendererPreferences;
|
| struct ThumbnailScore;
|
| struct ViewHostMsg_DomMessage_Params;
|
| @@ -605,7 +606,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 +705,9 @@ class TabContents : public PageNavigator,
|
| return safebrowsing_detection_host_.get();
|
| }
|
|
|
| + // Query the WebUISource for the WebUITypeID for the current URL.
|
| + WebUI::WebUITypeID GetWebUITypeForCurrentState();
|
| +
|
| protected:
|
| // from RenderViewHostDelegate.
|
| virtual bool OnMessageReceived(const IPC::Message& message);
|
| @@ -1190,7 +1194,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_;
|
|
|