Cleanup: ResourceDispatcherHost::BeginDownload takes a scoped_ptr<URLRequest> argument.
commitc1ba9984633ed7ce0b57f939825043d196d0a1d2
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 19 Jan 2012 20:56:05 +0000 (19 20:56 +0000)
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 19 Jan 2012 20:56:05 +0000 (19 20:56 +0000)
tree6544ecfd6723fb96d66435e346d2edc82bcee1b7
parenta36773dd8f0f23e110f2ed081d8fdca327cb562c
Cleanup: ResourceDispatcherHost::BeginDownload takes a scoped_ptr<URLRequest> argument.

This used to take an URLRequest*, with a comment about ownership. Changing to a scoped_ptr argument makes the ownership explicit and enforceable by the compiler.

Also, changed the name of the child_id argument to be process_unique_id to be consistent with the rest of the file.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118351 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/download/download_extension_api.cc
content/browser/download/download_manager_impl.cc
content/browser/renderer_host/render_message_filter.cc
content/browser/renderer_host/resource_dispatcher_host.cc
content/browser/renderer_host/resource_dispatcher_host.h