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 |