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_ |