Clean up download code:

- move filename generation parts and related code out of DownloadManager
  download_util is not the best place for it, but it's better than
  DownloadManager which we're trying to minimize

- clean up posting tasks to different threads. There's no need to create
  separate methods for that, it was cluttering the file needlessly

- other minor cleanups, like using static_cast instead of C-style cast

TEST=unit_tests, browser_tests, ui_tests
BUG=48913

Review URL: http://codereview.chromium.org/3043048

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