• Kenichi Ishibashi's avatar
    Clone service_manager::Connector for IO thread · 28032e00
    Kenichi Ishibashi authored
    URLLoaderThrottleProviderImpl and WebSocketHandshakeThrottleProviderImpl
    used content::RenderThread::Get()->GetConnector() to connect mojo
    interfaces. This prevented us from creating these throttle providers
    on the IO thread. To allow these throttle providers can be constructed
    without going to the main thread, create a clone of the main thread's
    connector in ChromeContentRendererClient::RenderThreadStarted().
    The cloned connector is bound to the IO thread and will be used
    to create throttle providers for off-the-main-thread service worker
    startup.
    
    Bug: 989781
    Change-Id: Ic4d20813e18c6238700545946cbcfd6f4534d974
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724754Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarKen Rockot <rockot@google.com>
    Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#684169}
    28032e00
chrome_content_renderer_client.h 12.1 KB