Chromium Code Reviews| 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 |