diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-07 19:01:45 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-07 19:01:45 +0000 |
commit | 13ed8da1c7ca2564e5fb9ff624f7cdb80eb033f3 (patch) | |
tree | 4b52c701627cf62f3e0d5d6b0aa3273303ea523b /chrome/browser/browser_about_handler.h | |
parent | 1e42f714e94d85e2fcc2ee4eabdb6202291375ad (diff) | |
download | chromium_src-13ed8da1c7ca2564e5fb9ff624f7cdb80eb033f3.zip chromium_src-13ed8da1c7ca2564e5fb9ff624f7cdb80eb033f3.tar.gz chromium_src-13ed8da1c7ca2564e5fb9ff624f7cdb80eb033f3.tar.bz2 |
Revert 88142 to fix sync_integration_tests offline.
*Fixup about and chrome scheme URLs in URLFixerUpper::FixupURL.
*Update AboutSource to use the source_name of each about/chrome page.
*Make WillHandleBrowserAboutURL fix up schemes and handle chrome://foo/
-Redirect memory to memory-redirect (wasn't handling chrome://memory/).
-Catalog all kChromeUI*Hosts in url_constants.cc
-Simplify paths (credits, os-credits, ipc, settings, about/version).
-Nix web_ui_util::ChromeURLHostEquals (use scheme & host comparison).
-Favor GURL::SchemeIs and url_constants, update & expand tests.
-Add and fixup chrome://chrome-urls (the about:about page).
BUG=55771
TEST=Access about:, about://, chrome:, chrome:// pages.
Review URL: http://codereview.chromium.org/7068007
TBR=msw@chromium.org
Review URL: http://codereview.chromium.org/7064052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.h')
-rw-r--r-- | chrome/browser/browser_about_handler.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/browser_about_handler.h b/chrome/browser/browser_about_handler.h index 5fa8051..caaeba3 100644 --- a/chrome/browser/browser_about_handler.h +++ b/chrome/browser/browser_about_handler.h @@ -19,21 +19,25 @@ template <typename T> struct DefaultSingletonTraits; class GURL; class Profile; -// Returns true if the given URL will be handled by the browser about handler. -// |url| should have been processed by URLFixerUpper::FixupURL, which replaces -// the about: scheme with chrome:// for all about:foo URLs except "about:blank". -// Some |url| host values will be replaced with their respective redirects. +// Decides whether the given URL will be handled by the browser about handler +// and returns true if so. On true, it may also modify the given URL to be the +// final form (we fix up most "about:" URLs to be "chrome:" because WebKit +// handles all "about:" URLs as "about:blank. // // This is used by BrowserURLHandler. bool WillHandleBrowserAboutURL(GURL* url, Profile* profile); +// Register the data source for chrome://about URLs. +// Safe to call multiple times. +void InitializeAboutDataSource(Profile* profile); + // We have a few magic commands that don't cause navigations, but rather pop up // dialogs. This function handles those cases, and returns true if so. In this // case, normal tab navigation should be skipped. bool HandleNonNavigationAboutURL(const GURL& url); -// Gets the paths that are shown in chrome://chrome-urls. -std::vector<std::string> ChromePaths(); +// Gets the paths that are shown in about:about. +std::vector<std::string> AboutPaths(); #if defined(USE_TCMALLOC) // A map of header strings (e.g. "Browser", "Renderer PID 123") |