Chromium Code Reviews

Issue 3051034: Refactor HttpNetworkTransaction to eliminate the SPDY... (Closed)

Created:
10 years, 4 months ago by Ryan Hamilton
Modified:
9 years, 7 months ago
Reviewers:
Mike Belshe, vandebo (ex-Chrome), mbelshe
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Minor change to: http://codereview.chromium.org/3064033 to fix valgrind detected memeory leak. Instead of storing the spdy session in a smart pointer member field, use a smart pointer local var in the method. We end up checking the pool twice, but c'est la vie. Refactor HttpNetworkTransaction to eliminate the SPDY specific states of the state machine. This required adding two new states: STATE_INIT_STREAM STATE_INTI_STREAM_COMPLETE The http_stream_ and spdy_http_stream_ member fields have been removed, and replaced by a single stream_ member field which is initialized with either an HttpBasicStream, or SpdyHttpStream depending on the underlying connection. In the process, the NetLog no longer receives TYPE_SPDY events, only TYPE_HTTP, so spdy_network_transaction_unittest.cc needed to be modified accordingly. BUG=50267 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55080

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Stats (+121 lines, -227 lines)
M net/http/http_network_transaction.h View 6 chunks +5 lines, -19 lines 0 comments
M net/http/http_network_transaction.cc View 26 chunks +109 lines, -202 lines 1 comment
M net/spdy/spdy_network_transaction_unittest.cc View 2 chunks +7 lines, -6 lines 0 comments

Messages

Total messages: 4 (0 generated)
Ryan Hamilton
10 years, 4 months ago (2010-08-05 00:25:22 UTC) #1
Ryan Hamilton
I thought I sent this yesterday, but it looks like I did not :<
10 years, 4 months ago (2010-08-05 16:24:18 UTC) #2
Mike Belshe
I like this better. :-) BTW - the CL description has a typo /INTI/INIT/ lgtm
10 years, 4 months ago (2010-08-05 16:53:20 UTC) #3
vandebo (ex-Chrome)
10 years, 4 months ago (2010-08-05 20:52:49 UTC) #4
LGTM

http://codereview.chromium.org/3051034/diff/1/2
File net/http/http_network_transaction.cc (right):

http://codereview.chromium.org/3051034/diff/1/2#newcode1299
net/http/http_network_transaction.cc:1299: }
Did you dropped the 'else if (result < 0) stream_.reset()' on purpose?

Powered by Google App Engine