Preload scan external CSS for @import
This change adds a StyleSheetResourceClient on all CSS
preloads. The client holds a CSSPreloadScanner which receives
the stream of CSS as it comes in.
This is guarded by two Blink settings,
cssExternalScannerPreload and cssExternalScannerNoPreload.
The former allows for scanning and preloading and the latter just
allows for scanning, as a baseline for the overhead of the feature.
This is partially a reland of
https://codereview.chromium.org/1819593002, which was
reverted manually here:
https://codereview.chromium.org/1947053002/
The revert was due to a crash and some faulty logic with
regard to all css preload requests being considered
"referenced". This CL attempts to fix that by adding an enum
to mark a ResourceClient as "passive".
BUG=
610437,
596676
Committed:
https://crrev.com/c016ef022ac17d029d61bc79d8a8996c053556f3
Cr-Commit-Position: refs/heads/master@{#414756}