DescriptionUse DownloadManager to initiate downloads from PluginInstaller.
PluginInstaller was invoking ResourceDispatcherHost::BeginDownload
directly to initiate downloads. This CL changes the initiation path to
use DownloadManager instead. DM already lives on the UI thread and
implements the logic needed to construct the URLRequest for the download
and invoke RDH on the IO thread.
Using DownloadManager for initiating downloads from the UI thread
reduces code duplication and decreases the callers of
ResourceDispatcherHost::BeginDownload. This removes one more obstacle in
the way of decoupling programmatic downloads from
ResourceDispatcherHost.
BUG=7648
BUG=225901
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265754
Patch Set 1 #
Total comments: 5
Patch Set 2 : Address comments. #
Messages
Total messages: 7 (0 generated)
|