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

Unified Diff: url/gurl.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Rebase. 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: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index 5753230db769ad079ac1041a8d5025d441898f58..b67e3f464284780e6e2a8adf0f6b703f038c4fe6 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -385,6 +385,10 @@ class URL_EXPORT GURL {
// object constructions are done.
bool DomainIs(base::StringPiece lower_ascii_domain) const;
+ // Checks whether or not two URLs are differing only in the ref (the part
+ // after the # character).
+ static bool EqualsIgnoringRef(const GURL& x, const GURL& y);
brettw 2017/02/07 06:37:47 I think I would prefer a non-static function: bo
arthursonzogni 2017/02/07 12:04:50 Done.
+
// Swaps the contents of this GURL object with |other|, without doing
// any memory allocations.
void Swap(GURL* other);

Powered by Google App Engine
This is Rietveld 408576698