diff options
Diffstat (limited to 'chrome/browser/dom_ui/debugger_ui.cc')
-rw-r--r-- | chrome/browser/dom_ui/debugger_ui.cc | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/chrome/browser/dom_ui/debugger_ui.cc b/chrome/browser/dom_ui/debugger_ui.cc index 3af0faa..c8b4e74 100644 --- a/chrome/browser/dom_ui/debugger_ui.cc +++ b/chrome/browser/dom_ui/debugger_ui.cc @@ -19,6 +19,8 @@ #include "grit/debugger_resources.h" +namespace { + class DebuggerHTMLSource : public ChromeURLDataManager::DataSource { public: // Creates our datasource and sets our user message to a specific message @@ -80,7 +82,7 @@ class DebuggerHTMLSource : public ChromeURLDataManager::DataSource { } private: - DISALLOW_EVIL_CONSTRUCTORS(DebuggerHTMLSource); + DISALLOW_COPY_AND_ASSIGN(DebuggerHTMLSource); }; @@ -117,12 +119,9 @@ class DebuggerHandler : public DOMMessageHandler { DISALLOW_COPY_AND_ASSIGN(DebuggerHandler); }; +} // namespace -DebuggerUI::DebuggerUI(DOMUIContents* contents) - : DOMUI(contents) { -} - -void DebuggerUI::Init() { +DebuggerUI::DebuggerUI(WebContents* contents) : DOMUI(contents) { AddMessageHandler(new DebuggerHandler(this)); DebuggerHTMLSource* html_source = new DebuggerHTMLSource(); @@ -131,18 +130,3 @@ void DebuggerUI::Init() { &ChromeURLDataManager::AddDataSource, html_source)); } - -// static -bool DebuggerUI::IsDebuggerUrl(const GURL& url) { - return url.SchemeIs(chrome::kChromeUIScheme) && - url.host() == chrome::kInspectorHost; -} - -// static -GURL DebuggerUI::GetBaseURL() { - // DebuggerUI is accessible from chrome-ui://inspector. - std::string url = chrome::kChromeUIScheme; - url += chrome::kStandardSchemeSeparator; - url += chrome::kInspectorHost; - return GURL(url); -} |