Chromium Code Reviews| Index: net/base/registry_controlled_domains/registry_controlled_domain.h |
| diff --git a/net/base/registry_controlled_domains/registry_controlled_domain.h b/net/base/registry_controlled_domains/registry_controlled_domain.h |
| index bbe8f0b8145bf1b1c74abbb18de16e5ba959ee95..a3bfbab3db0d55aaba097c97f6c1b9a199813334 100644 |
| --- a/net/base/registry_controlled_domains/registry_controlled_domain.h |
| +++ b/net/base/registry_controlled_domains/registry_controlled_domain.h |
| @@ -117,6 +117,7 @@ |
| #include <string> |
| +#include "base/optional.h" |
| #include "base/strings/string_piece.h" |
| #include "net/base/net_export.h" |
| @@ -199,6 +200,9 @@ NET_EXPORT bool SameDomainOrHost(const GURL& gurl1, const GURL& gurl2, |
| NET_EXPORT bool SameDomainOrHost(const url::Origin& origin1, |
| const url::Origin& origin2, |
| PrivateRegistryFilter filter); |
| +NET_EXPORT bool SameDomainOrHost(const url::Origin& origin1, |
| + const base::Optional<url::Origin>& origin2, |
| + PrivateRegistryFilter filter); |
|
mmenke
2016/11/03 17:58:58
Mention behavior for a null origin?
clamy
2016/11/04 16:03:50
Done.
|
| // Finds the length in bytes of the registrar portion of the host in the |
| // given GURL. Returns std::string::npos if the GURL is invalid or has no |