commit | aa2a8b5fb112e7e0d90d0f19d43f56c60bcf4406 | [log] [tgz] |
---|---|---|
author | Cammie Smith Barnes <[email protected]> | Thu Dec 17 19:33:19 2020 |
committer | Chromium LUCI CQ <[email protected]> | Thu Dec 17 19:33:19 2020 |
tree | 7d01dabeead1ec2e57afef48972287ca341414ed | |
parent | ed4d77df67210e77fcffd23e1694dcefa8091824 [diff] |
Net: Plumb CNAME aliases to sockets with aim of exposing to ad-tagging. The overall project aims to expose CNAME aliases to the SubresourceFilter to aid in ad tagging and blocking. A previous CL stored CNAME aliases in net::AddressList during DNS resolution. This CL's parent added an accessor to net::ResolveHostRequest/net::HostResolverManager::RequestImpl. This change continues the plumbing by adding a base::Optional parameter to net::ConnectJob::SetSocket. net::Socket, on the other hand, gains both a getter and a setter for the aliases, which need to be stored in the sockets in case of socket reuse. But only three derived classes get a nontrivial implementation with an actual field to store the aliases: net::TCPClientSocket, net::SSLClientSocketImpl, and net::WebSocketStreamSocket. Relevant tests: net:net_unittests out/Default/net_unittests --gtest_filter=*Dns*Alias* Bug: 1151047 Change-Id: Ib1d8f6d8358aa445fad9051218336ec9953ff9b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563439 Commit-Queue: Cammie Smith Barnes <[email protected]> Reviewed-by: Matt Menke <[email protected]> Cr-Commit-Position: refs/heads/master@{#838179}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.