diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 01:13:10 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 01:13:10 +0000 |
commit | 1b6f6ffd39c1620d7ffd802e82a4b87653f5a463 (patch) | |
tree | 3e325ca60b285dec6a748c9ad3ca1c47eab285ee /chrome/browser/browser_about_handler.h | |
parent | b95b915d8a831681ee4f7219152f2c00e5cd93cd (diff) | |
download | chromium_src-1b6f6ffd39c1620d7ffd802e82a4b87653f5a463.zip chromium_src-1b6f6ffd39c1620d7ffd802e82a4b87653f5a463.tar.gz chromium_src-1b6f6ffd39c1620d7ffd802e82a4b87653f5a463.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/browser_about_handler.h')
-rw-r--r-- | chrome/browser/browser_about_handler.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <map> #include <string> +#include <vector> #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<std::string> AboutPaths(); + #if defined(USE_TCMALLOC) // A map of header strings (e.g. "Browser", "Renderer PID 123") // to the tcmalloc output collected for each process. |