The HttpRequestInfo object must outlive the HttpNetworkTransaction object because HttpRequestInfo is passed to HttpNetworkTransaction::Start() and HttpNetworkTransaction access the request info object in many places.

With the current code UploadData gets deleted before HttpStreamParser and that causes
read-after-free cases as shown in the below bug.

BUG=70825
TEST=verify that the valgrind issue mentioned in the bug gets fixed

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

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