Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Issue 1039001: HttpRequestHeaders refactor. (Closed)

Created:
10 years, 9 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc, brettw
CC:
chromium-reviews
Visibility:
Public.

Description

HttpRequestHeaders refactor. * Create HttpRequestHeaders. * Switch HttpNetworkTransaction to build request headers. TODO: Change extra_headers to use HttpRequestHeaders. BUG=22588 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42300

Patch Set 1 #

Total comments: 36

Patch Set 2 : Address eroman's comments. Upload the test. Use StringPiece to reduce copies. #

Total comments: 14

Patch Set 3 : Fix bugs pointed out by eroman. Address brettw's comments. #

Patch Set 4 : Fix windows build. #

Total comments: 4

Patch Set 5 : Fix bugs, add tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+584 lines, -69 lines) Patch
M base/string_util.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M base/string_util.cc View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
M base/string_util_unittest.cc View 2 chunks +49 lines, -1 line 0 comments Download
M net/http/http_network_transaction.h View 2 chunks +4 lines, -2 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 6 chunks +80 lines, -63 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 chunk +39 lines, -0 lines 0 comments Download
A net/http/http_request_headers.h View 1 1 chunk +97 lines, -0 lines 0 comments Download
A net/http/http_request_headers.cc View 1 2 3 4 1 chunk +133 lines, -0 lines 0 comments Download
A net/http/http_request_headers_unittest.cc View 2 1 chunk +120 lines, -0 lines 0 comments Download
M net/net.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
willchan no longer on Chromium
10 years, 9 months ago (2010-03-16 06:01:31 UTC) #1
eroman
Overall looks good. ... please upload the unittests which seem to be missing. **Design question** ...
10 years, 9 months ago (2010-03-16 09:11:54 UTC) #2
eroman
I recommend having Brett review the changes to string_util.h
10 years, 9 months ago (2010-03-16 09:12:48 UTC) #3
willchan no longer on Chromium
Brett: please look at the string_util changes. eroman: I asked for comments on the bug ...
10 years, 9 months ago (2010-03-16 19:54:19 UTC) #4
eroman
http://codereview.chromium.org/1039001/diff/9001/10006 File net/http/http_request_headers.cc (right): http://codereview.chromium.org/1039001/diff/9001/10006#newcode72 net/http/http_request_headers.cc:72: const std::string::size_type value_index = key_end_index + 2; The constant ...
10 years, 9 months ago (2010-03-16 23:53:43 UTC) #5
brettw
http://codereview.chromium.org/1039001/diff/9001/10002 File base/string_util.h (right): http://codereview.chromium.org/1039001/diff/9001/10002#newcode579 base/string_util.h:579: void SplitStringUsingSubstr(const std::wstring& str, I think we should pick ...
10 years, 9 months ago (2010-03-17 00:21:19 UTC) #6
willchan no longer on Chromium
On 2010/03/17 00:21:19, brettw wrote: > http://codereview.chromium.org/1039001/diff/9001/10002 > File base/string_util.h (right): > > http://codereview.chromium.org/1039001/diff/9001/10002#newcode579 > ...
10 years, 9 months ago (2010-03-17 17:03:51 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/1039001/diff/9001/10002 File base/string_util.h (right): http://codereview.chromium.org/1039001/diff/9001/10002#newcode579 base/string_util.h:579: void SplitStringUsingSubstr(const std::wstring& str, On 2010/03/17 00:21:19, brettw wrote: ...
10 years, 9 months ago (2010-03-17 17:10:21 UTC) #8
brettw
On 2010/03/17 17:03:51, willchan wrote: > On 2010/03/17 00:21:19, brettw wrote: > > http://codereview.chromium.org/1039001/diff/9001/10002 > ...
10 years, 9 months ago (2010-03-17 17:17:02 UTC) #9
willchan no longer on Chromium
On 2010/03/17 17:17:02, brettw wrote: > On 2010/03/17 17:03:51, willchan wrote: > > On 2010/03/17 ...
10 years, 9 months ago (2010-03-17 18:33:28 UTC) #10
willchan no longer on Chromium
http://codereview.chromium.org/1039001/diff/9001/10006 File net/http/http_request_headers.cc (right): http://codereview.chromium.org/1039001/diff/9001/10006#newcode72 net/http/http_request_headers.cc:72: const std::string::size_type value_index = key_end_index + 2; On 2010/03/16 ...
10 years, 9 months ago (2010-03-17 18:33:40 UTC) #11
eroman
http://codereview.chromium.org/1039001/diff/24001/25004 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/1039001/diff/24001/25004#newcode120 net/http/http_network_transaction.cc:120: std::vector<std::string> extra_headers_vector; Please move the code which builds the ...
10 years, 9 months ago (2010-03-18 02:58:29 UTC) #12
willchan no longer on Chromium
http://codereview.chromium.org/1039001/diff/24001/25004 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/1039001/diff/24001/25004#newcode120 net/http/http_network_transaction.cc:120: std::vector<std::string> extra_headers_vector; On 2010/03/18 02:58:29, eroman wrote: > Please ...
10 years, 9 months ago (2010-03-20 00:23:34 UTC) #13
eroman
10 years, 9 months ago (2010-03-22 23:29:37 UTC) #14
lgtm

Powered by Google App Engine
This is Rietveld 408576698