• K. Moon's avatar
    Process headers in chrome_pdf::BlinkUrlLoader · cb86f60f
    K. Moon authored
    Translates between the UrlRequest/UrlResponse (flat string) and
    blink::WebURLRequest/blink::WebURLResponse (key-value map) header
    formats, based on the behavior of Pepper's
    content::CreateWebURLRequest() and content::DataFromWebURLResponse().
    
    The Pepper methods do not distinguish between absent and empty strings,
    so UrlRequest and UrlResponse now use empty strings as the "absent"
    value as well, as there's no need to support this state separately.
    
    Bug: 1099022
    Change-Id: Ia509bea005f356ccbe2bb79aff73a01fd3fd9eed
    Cq-Do-Not-Cancel-Tryjobs: true
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2415374Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
    Reviewed-by: default avatarDaniel Hosseinian <dhoss@chromium.org>
    Commit-Queue: K. Moon <kmoon@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#808171}
    cb86f60f
url_loader_wrapper_impl.cc 9.38 KB