| Index: chrome/browser/extensions/extension_web_ui.h
|
| diff --git a/chrome/browser/extensions/extension_web_ui.h b/chrome/browser/extensions/extension_web_ui.h
|
| index 3a9dbd5a285e706f2891c772757610005c6811dc..ac544c3fb1331fe74aa3388baf9e1a55cdde105e 100644
|
| --- a/chrome/browser/extensions/extension_web_ui.h
|
| +++ b/chrome/browser/extensions/extension_web_ui.h
|
| @@ -31,17 +31,27 @@ class PrefRegistrySyncable;
|
| // the main tab contents area. For example, each extension can specify an
|
| // "options_page", and that page is displayed in the tab contents area and is
|
| // hosted by this class.
|
| +// TODO(devlin): The above description has nothing to do with this class as far
|
| +// as I can tell.
|
| class ExtensionWebUI : public content::WebUIController {
|
| public:
|
| static const char kExtensionURLOverrides[];
|
|
|
| + // Returns true if the given url requires WebUI bindings.
|
| + static bool NeedsExtensionWebUI(content::BrowserContext* browser_context,
|
| + const GURL& url);
|
| +
|
| ExtensionWebUI(content::WebUI* web_ui, const GURL& url);
|
|
|
| ~ExtensionWebUI() override;
|
|
|
| - virtual extensions::BookmarkManagerPrivateDragEventRouter*
|
| + extensions::BookmarkManagerPrivateDragEventRouter*
|
| bookmark_manager_private_drag_event_router();
|
|
|
| + // TODO(devlin): The rest of this class is static methods dealing with
|
| + // chrome url overrides (e.g. changing chrome://newtab to go to an extension-
|
| + // provided new tab page). This should be in a separate class from the WebUI
|
| + // controller for the bookmark manager.
|
| // BrowserURLHandler
|
| static bool HandleChromeURLOverride(GURL* url,
|
| content::BrowserContext* browser_context);
|
| @@ -97,8 +107,7 @@ class ExtensionWebUI : public content::WebUIController {
|
| std::unique_ptr<extensions::BookmarkManagerPrivateDragEventRouter>
|
| bookmark_manager_private_drag_event_router_;
|
|
|
| - // The URL this WebUI was created for.
|
| - GURL url_;
|
| + DISALLOW_COPY_AND_ASSIGN(ExtensionWebUI);
|
| };
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_
|
|
|