Descriptioncomponents/image_fetcher: Add a from_http_cache flag to RequestMetadata
To be used by clients (components/doodle in particular) for metrics purposes.
This also includes a bunch of semi-related cleanups to RequestMetadata:
- Give it a ctor (because I dislike uninitialized values).
- Move RESPONSE_CODE_INVALID in there (from ImageDataFetcher).
- Rename response_code to http_response_code.
BUG=690467
Review-Url: https://codereview.chromium.org/2749283002
Cr-Commit-Position: refs/heads/master@{#457080}
Committed: https://chromium.googlesource.com/chromium/src/+/f235d928f6d89dd7decb34082353a0bde50c6597
Patch Set 1 #Patch Set 2 : test #
Messages
Total messages: 18 (10 generated)
|