Use 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

Review URL: https://codereview.chromium.org/230163002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265754 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed