DescriptionFactor out SameHost() in registry_controlled_domains
This allows clients to replicate SameDomainOrHost functionality in a more
flexible and efficient way. One example use case is when there is a fixed
|gurl_0|, and many different |gurl_i|'s need to be checked against |gurl_0|.
After this CL, an efficient solution will be to save |gurl_0| and
|domain_and_registry_0| = GetDomainAndRegistry(gurl_0), and then for for every
incoming |gurl_i|, calculate GetDomainAndRegistry(gurl_i), and fall back to
SameHost(gurl_0, gurl_i) not both of them have both domains.
BUG=
Patch Set 1 #
Total comments: 1
Depends on Patchset: Messages
Total messages: 10 (8 generated)
|