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

Unified Diff: net/base/url_util.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Very minor fix. Created 3 years, 11 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
Index: net/base/url_util.h
diff --git a/net/base/url_util.h b/net/base/url_util.h
index 75f7b620be0686210434d30c4452d76efb40997f..28de10585118b981063f396f23271d710471e11d 100644
--- a/net/base/url_util.h
+++ b/net/base/url_util.h
@@ -150,6 +150,11 @@ NET_EXPORT bool IsHostnameNonUnique(const std::string& hostname);
// machine.
NET_EXPORT bool IsLocalhost(base::StringPiece host);
+// Checks whether or not two URL are an in-page navigation (differing only in
+// the fragment).
+NET_EXPORT bool AreURLsInPageNavigation(const GURL& existing_url,
nasko 2017/01/13 02:51:10 nit: It is a bit strange to have "navigation" in t
+ const GURL& new_url);
+
// Strip the portions of |url| that aren't core to the network request.
// - user name / password
// - reference section

Powered by Google App Engine
This is Rietveld 408576698