Pass ResourceResponse and StreamHandle in CommitNavigation.
commita5496d6d37a8e4e571d14256d504b15784274001
authordavidben <davidben@chromium.org>
Tue, 7 Oct 2014 18:52:04 +0000 (7 11:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 18:52:17 +0000 (7 18:52 +0000)
tree262c66885cfc539ac067a706e8444de6dbf818a4
parent8831427bce44557656e72995f2e4bdf475eaa022
Pass ResourceResponse and StreamHandle in CommitNavigation.

Split out from https://codereview.chromium.org/519533002/.

NavigationBeforeCommitInfo is removed in favor of the already existing
ResourceResponse object. In addition, replace the stream URL with a
StreamHandle which maintains ownership. The ownership is transferred
to the UI thread, which will then maintain ownership on behalf of the renderer.

This loses navigation_request_id, so also remove the existing stub code in
NavigationRequest; that will be handled by a UI-thread NavigationURLLoader
object to hide all the IO thread business, including cancellation, from the
UI thread navigation code.

BUG=376015

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

Cr-Commit-Position: refs/heads/master@{#298531}
16 files changed:
content/browser/frame_host/navigation_before_commit_info.cc [deleted file]
content/browser/frame_host/navigation_before_commit_info.h [deleted file]
content/browser/frame_host/navigation_request.cc
content/browser/frame_host/navigation_request.h
content/browser/frame_host/navigator.cc
content/browser/frame_host/navigator.h
content/browser/frame_host/navigator_impl.cc
content/browser/frame_host/navigator_impl.h
content/browser/frame_host/navigator_impl_unittest.cc
content/browser/frame_host/render_frame_host_impl.cc
content/browser/frame_host/render_frame_host_impl.h
content/browser/frame_host/render_frame_host_manager.cc
content/common/frame_messages.h
content/content_browser.gypi
content/renderer/render_frame_impl.cc
content/renderer/render_frame_impl.h