Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7830)

Unified Diff: chrome/common/url_constants.h

Issue 7049004: Normalize chrome://foo/ trailing slashes, ChromeURLHostEquals comparison, RIP dead consts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add dummy GURL::SchemeIs for chrome_dll_nacl_win64. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/googleurl_dummy.cc ('k') | chrome/common/url_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/common/googleurl_dummy.cc ('k') | chrome/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698