forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Net: Save CNAME aliases to AddressList with aim of exposing to ad-tag.
The overall project aims to expose CNAME aliases to the SubresourceFilter to aid in ad tagging and blocking. This change stores the aliases (which are already being extracted) in a new field of type std::vector<std::string> in net::AddressList called `dns_aliases_`. The first entry of this vector, if it exists, will be the canonical name, and so this change also removes the previous `canonical_name_` field and renames the canonical name getters and setters with camel case, making them no longer inline, as now they have compound logic. This CL moreover provides the ability to merge lists of aliases to the net::HostCache::Entry class, as well as some additional unit tests and updates to existing ones. Relevant tests: net:net_unittests --gtest_filter=*GetCanonicalNameWhenUnset* --gtest_filter=*DnsAliases* --gtest_filter=*CnameChain*TypeA* --gtest_filter=*MergeEntries* Bug: 1151047 Change-Id: Ie45cb4284df33053db36b364ea982cbfe3d6a618 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2561274 Commit-Queue: Cammie Smith Barnes <[email protected]> Reviewed-by: Eric Orth <[email protected]> Reviewed-by: Mike West <[email protected]> Reviewed-by: Avi Drissman <[email protected]> Cr-Commit-Position: refs/heads/master@{#834439}
- Loading branch information
1 parent
1665589
commit 78c0778
Showing
23 changed files
with
726 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.