DescriptionSet network_accessed earlier, when network transaction creates stream.
HttpResponseInfo contains a "network_accessed" flag that is currently
set when HttpNetworkTransaction finishes sending the request. This is
not entirely accurate; it ends up false for requests that don't send a
request but do touch the network in other ways (e.g. DNS resolution
fails, or TCP connection is terminated before we finish sending the
request).
This flag is used only by Domain Reliability for checking whether a
request touched the network, and by ServiceWorker for histograms.
horo says ServiceWorker won't be affected, and I would prefer these
semantics for Domain Reliability's use, so I'm changing it.
Note that this also changes several instances of GetResponseInfo
to stop returning NULL.
See also for context:
https://groups.google.com/a/chromium.org/forum/#!topic/net-dev/Wtn65jGyot0
BUG=480565
Committed: https://crrev.com/c0c828496a25acd34b85985b412799933a36f1ff
Cr-Commit-Position: refs/heads/master@{#330011}
Patch Set 1 #Patch Set 2 : Set network_accessed in network transaction, not cache transaction #Patch Set 3 : Also set network_accessed in URLRequest::NotifyBeforeNetworkStart #
Total comments: 1
Patch Set 4 : Don't set network_accessed while deferred; add unit tests. #Patch Set 5 : rebase #Patch Set 6 : Plumb network_accessed up properly through HNT and HCT; adjust tests. #Patch Set 7 : rebase #
Total comments: 9
Patch Set 8 : Make requested changes #Patch Set 9 : Don't break build on iOS #
Messages
Total messages: 22 (4 generated)
|