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

Unified Diff: net/base/url_util.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Adding a DCHECK to probably make a lot of tests fail. 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..8a83686c67236c2c8b6e78569febdfc43dfd964c 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 URLs are differing only in the fragment (the part
+// after the # character). Returns false when the new URL has no fragment.
+NET_EXPORT bool IsFragmentAddedOrUpdated(const GURL& old_url,
+ 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