Chromium Code Reviews| Index: chrome/common/url_constants.h |
| diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h |
| index 8d030d22afe9c0694db54d2d235b552dd073e3fe..1e90c812cfe5dfa8ddc06b4de382c102da65294b 100644 |
| --- a/chrome/common/url_constants.h |
| +++ b/chrome/common/url_constants.h |
| @@ -10,6 +10,8 @@ |
| #include "content/common/url_constants.h" |
| +class GURL; |
| + |
| namespace chrome { |
| // Null terminated list of schemes that are savable. |
| @@ -45,7 +47,6 @@ extern const char kAboutVersionURL[]; |
| extern const char kChromeUIAboutAboutURL[]; |
| extern const char kChromeUIAboutCreditsURL[]; |
| extern const char kChromeUIAboutURL[]; |
| -extern const char kChromeUIAppLauncherURL[]; |
| extern const char kChromeUIBookmarksURL[]; |
| extern const char kChromeUIBugReportURL[]; |
| extern const char kChromeUIConflictsURL[]; |
| @@ -219,6 +220,10 @@ extern const char kBlockedPluginLearnMoreURL[]; |
| // should be parsed as "standard" with the googleurl library. |
| void RegisterChromeSchemes(); |
| +// Returns true if |url| has a chrome: or about: scheme and matching |host|. |
| +// The url may contain a path under the host. |
| +bool IsChromeURL(const GURL& url, const char* host); |
|
Evan Stade
2011/05/23 20:41:17
can we call this ChromeURLEquals or something? IsC
msw
2011/05/24 03:27:39
Done.
|
| + |
| } // namespace chrome |
| #endif // CHROME_COMMON_URL_CONSTANTS_H_ |