• Patrick Monette's avatar
    Retrieve module information on a background task in ModuleEventSinkImpl · 9dd3eaad
    Patrick Monette authored
    Retrieving this information requires IPC to the remote process, which
    is blocking and thus must not be done on the UI thread.
    
    But the ModuleEventSinkImpl instance must still live on the UI thread,
    because thats where the RenderProcessHost instance lives. The
    RenderProcessHost must be accessed to get the handle to the remote
    process inside the ModuleEventSinkImpl::Create() factory function.
    
    To make the process handle available from the background task, it is
    now duplicated and passed to the task via the PostTaskWithTraits()
    call.
    
    Bug: 832286
    Change-Id: I3948a585f3d7645d706b0e8977cdf3182f212306
    Reviewed-on: https://chromium-review.googlesource.com/1058339Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Patrick Monette <pmonette@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#558758}
    9dd3eaad
module_event_sink_impl_win.cc 6.23 KB