• Lukasz Anforowicz's avatar
    Refactor ContentBrowserClient API exempting content scripts from CORB. · 05f356ec
    Lukasz Anforowicz authored
    //services/network won't be able to directly use ContentBrowserClient,
    so this CL refactors CORB-related parts of ContentBrowserClient in such
    a way that the data they return in a browser-process can be easily
    passed to the network service process.
    
    Specifically, this CL changes the following ContentBrowserClient API:
    
      virtual bool ShouldBypassDocumentBlocking(const url::Origin& initiator,
                                                const GURL& url,
                                                ResourceType resource_type);
    
    into:
    
      virtual const char* GetInitatorSchemeBypassingDocumentBlocking();
    
    Bug: 792546
    Change-Id: I39d88a97ff24d776319b2687837838fa594054c5
    Tbr: rdevlin.cronin@chromium.org
    Reviewed-on: https://chromium-review.googlesource.com/958041
    Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
    Reviewed-by: default avatarNick Carter <nick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#542897}
    05f356ec
chrome_content_browser_client.cc 164 KB