DescriptionRefactor HttpNetworkTransaction to remove side effects in some member functions.
I'm preparing to move some of this functionality out to a HttpStream object or something. I'm hindered here by the mutation of state in functions that seemingly should be const. I've refactored some code into non-member functions to make the dependencies more explicit. This will make it easier for me to pull some of this code out.
Also dropped the net:: qualifiers in the unittest.
TESTED=Ran net_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14772
Patch Set 1 #Patch Set 2 : Add unittest. #
Total comments: 4
Patch Set 3 : Don't call GetContentLength(), rename tests. #
Total comments: 19
Patch Set 4 : Save on some string copies and temporaries. Address wtc's other comments. #
Total comments: 6
Patch Set 5 : Use the output param directly rather than swapping. #Patch Set 6 : Use request_headers directly instead of swapping. #
Total comments: 2
Messages
Total messages: 9 (0 generated)
|