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

Unified Diff: net/base/registry_controlled_domains/registry_controlled_domain.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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: 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..9e631f6f130f99159bbaaba77b7c5519e3dd935f 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,10 @@ NET_EXPORT bool SameDomainOrHost(const GURL& gurl1, const GURL& gurl2,
NET_EXPORT bool SameDomainOrHost(const url::Origin& origin1,
const url::Origin& origin2,
PrivateRegistryFilter filter);
+// Note: this returns false if |origin2| is not set.
+NET_EXPORT bool SameDomainOrHost(const url::Origin& origin1,
+ const base::Optional<url::Origin>& origin2,
+ PrivateRegistryFilter filter);
// 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
« no previous file with comments | « media/mojo/services/mojo_provision_fetcher.h ('k') | net/base/registry_controlled_domains/registry_controlled_domain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698