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

Unified Diff: components/history/core/browser/url_utils.h

Issue 1179953005: Add History.TopHostsVisitsByRank UMA metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@is_allowed
Patch Set: Use HistogramTester to eliminate test brittleness. Created 5 years, 6 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 | « components/history/core/browser/history_database.cc ('k') | components/history/core/browser/url_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/url_utils.h
diff --git a/components/history/core/browser/url_utils.h b/components/history/core/browser/url_utils.h
index e60eb4f9a7762b55b88ec39a7892181cc17ae1a5..ba4f4aa5cf053c6053fa68781e37354ef7fe95bf 100644
--- a/components/history/core/browser/url_utils.h
+++ b/components/history/core/browser/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 the host of the given URL, canonicalized as it would be for
+// HistoryService::TopHosts().
+std::string HostForTopHosts(const GURL& url);
+
} // namespace history
#endif // COMPONENTS_HISTORY_CORE_BROWSER_URL_UTILS_H_
« no previous file with comments | « components/history/core/browser/history_database.cc ('k') | components/history/core/browser/url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698