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

Unified Diff: chrome/browser/history/url_utils.h

Issue 722723005: Move constants used by history component to history namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patchset Created 6 years, 1 month 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
Index: chrome/browser/history/url_utils.h
diff --git a/chrome/browser/history/url_utils.h b/chrome/browser/history/url_utils.h
index 9e1ed2cc1610a1149822bf3c14c58e34581b42a9..daf5f111af42c75ce1585db35ed7956c5bfbe0b2 100644
--- a/chrome/browser/history/url_utils.h
+++ b/chrome/browser/history/url_utils.h
@@ -41,6 +41,10 @@ bool IsPathPrefix(const std::string& p1, const std::string& p2);
// If |url| is neither HTTP nor HTTPS, returns an empty URL.
GURL ToggleHTTPAndHTTPS(const GURL& url);
+// Returns true if this looks like the type of URL we want to add to the
+// history. We filter out some URLs such as JavaScript.
+bool CanAddURL(const GURL& url);
+
} // namespace history
#endif // CHROME_BROWSER_HISTORY_URL_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698