DescriptionProvide the equivalent of GURL::DomainIs for url::Origin.
Move the implementation of GURL::DomainIs into a shared function in url_util/,
to be used both by GURL and url::Origin.
The reason for this refactoring is to reap significant performance gains in
scenarios where previously url::Origins had to be converted to GURLs for
DomainIs checks. This involved string copying, allocations, and parsing the
entire URL once again.
BUG=517560
Committed: https://crrev.com/054f40334067cafe53af8518accbfcf3b0f803d9
Cr-Commit-Position: refs/heads/master@{#415606}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address comments of engedy@ #
Total comments: 4
Patch Set 3 : Minor changes. #
Messages
Total messages: 29 (19 generated)
|