• aa's avatar
    Mojo: Fix two bugs in content handling · 54efb235
    aa authored
    1. URLLoaders can't be reused, so we need to construct one
       per-load. This became too gnarly to handle with callbacks
       so I put it back to having a loader object that owns the
       URLLoader.
    
    2. The relevant URLLoader needs to be passed to
       ContentHandler::OnConnect() so that it stays alive long
       enough to read the entire response.
    
    BUG=
    
    Review URL: https://codereview.chromium.org/513573002
    
    Cr-Commit-Position: refs/heads/master@{#292460}
    54efb235
application_loader.cc 788 Bytes