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

Unified Diff: url/url_util.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Move IsFragmentAddedOrUpdated from net/ to url∕ 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
« no previous file with comments | « third_party/WebKit/public/platform/WebURLRequest.h ('k') | url/url_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_util.h
diff --git a/url/url_util.h b/url/url_util.h
index e424c503757edbf2002f081bb2cc8499ffaebcd1..2ee7e57657260b0f31d0463db9d5a2f0e71f4c12 100644
--- a/url/url_util.h
+++ b/url/url_util.h
@@ -176,6 +176,13 @@ URL_EXPORT bool DomainIs(base::StringPiece canonicalized_host,
// cheap, as it must re-parse the host to verify.
URL_EXPORT bool HostIsIPAddress(base::StringPiece host);
+// Fragment --------------------------------------------------------------------
+
+// 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.
+URL_EXPORT bool IsFragmentAddedOrUpdated(const GURL& old_url,
brettw 2017/01/26 20:44:46 Several points: Regarding the naming: This code u
+ const GURL& new_url);
+
// URL library wrappers --------------------------------------------------------
// Parses the given spec according to the extracted scheme type. Normal users
« no previous file with comments | « third_party/WebKit/public/platform/WebURLRequest.h ('k') | url/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698