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

Unified Diff: chrome/browser/ui/webui/web_ui_util.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: Move ChromeURLHostEquals to web_ui_util. 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/browser/ui/webui/BidiCheckerWebUITest.cc ('k') | chrome/browser/ui/webui/web_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/web_ui_util.h
diff --git a/chrome/browser/ui/webui/web_ui_util.h b/chrome/browser/ui/webui/web_ui_util.h
index 2a7743fcb7f485176cf065c217af61bcb021e335..0a0eebf5dde6791b730a43f68e6ac3b44c6869d4 100644
--- a/chrome/browser/ui/webui/web_ui_util.h
+++ b/chrome/browser/ui/webui/web_ui_util.h
@@ -8,6 +8,7 @@
#include <string>
+class GURL;
class SkBitmap;
namespace web_ui_util {
@@ -24,6 +25,10 @@ std::string GetImageDataUrl(const SkBitmap& bitmap);
// |resource_id|.
std::string GetImageDataUrlFromResource(int resource_id);
+// Returns true if |url| has a chrome: or about: scheme and matching |host|.
+// The url may contain a path under the host.
+bool ChromeURLHostEquals(const GURL& url, const char* host);
+
} // namespace web_ui_util
#endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_
« no previous file with comments | « chrome/browser/ui/webui/BidiCheckerWebUITest.cc ('k') | chrome/browser/ui/webui/web_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698