From 1b6f6ffd39c1620d7ffd802e82a4b87653f5a463 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 23 Feb 2011 01:13:10 +0000 Subject: Add autocomplete provider for "about:" URLs. This is a reworked version of r74451 that makes the following changes: * Removed function to convert an about: string to a URL. We don't need this in the autocomplete side because the "about:" URLs will be correctly handled when the user hits enter; and removing it means we don't need to ensure that the data provider is initialized, because that will also be done automatically. * Clean up the about:about HTML construction to be shorter and produce slightly more readable source code * Remove about:vaporware (cleared with thakis, who added it) (Obviously, the last two changes are "while I'm here, ..." cleanups.) BUG=6870 TEST=Typing "about:s" into the omnibox should result in a couple of "about:s..." URL entries in the dropdown even if you've never visited them. Review URL: http://codereview.chromium.org/6474019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75691 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_about_handler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/browser_about_handler.h') diff --git a/chrome/browser/browser_about_handler.h b/chrome/browser/browser_about_handler.h index 90d140b..b894ceb 100644 --- a/chrome/browser/browser_about_handler.h +++ b/chrome/browser/browser_about_handler.h @@ -10,6 +10,7 @@ #include #include +#include #include "base/process.h" #include "base/string_util.h" @@ -35,6 +36,9 @@ void InitializeAboutDataSource(Profile* profile); // case, normal tab navigation should be skipped. bool HandleNonNavigationAboutURL(const GURL& url); +// Gets the paths that are shown in about:about. +std::vector AboutPaths(); + #if defined(USE_TCMALLOC) // A map of header strings (e.g. "Browser", "Renderer PID 123") // to the tcmalloc output collected for each process. -- cgit v1.1