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

Issue 42541: Prioritize which HTTP requests get a socket first by adding a priority level ... (Closed)

Created:
11 years, 9 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Prioritize which HTTP requests get a socket first by adding a priority level to various methods and classes. Fix lint errors along the way. R=darin,wtc BUG=8993 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12470

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 28

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -114 lines) Patch
M chrome/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -3 lines 0 comments Download
M net/base/client_socket_handle.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M net/base/client_socket_handle.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M net/base/client_socket_pool.h View 1 2 3 4 5 6 7 4 chunks +32 lines, -22 lines 0 comments Download
M net/base/client_socket_pool.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -2 lines 0 comments Download
M net/base/client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 chunks +107 lines, -62 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 11 chunks +11 lines, -11 lines 0 comments Download
M net/http/http_request_info.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 4 chunks +17 lines, -6 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
willchan no longer on Chromium
I wasn't sure exactly where I should be adding the priority member variable, so I ...
11 years, 9 months ago (2009-03-23 23:50:40 UTC) #1
darin (slow to review)
LGTM. Thanks for the cleaning up the neighboring code! I only have some nit picks: ...
11 years, 9 months ago (2009-03-24 16:35:16 UTC) #2
wtc
LGTM. Just some nits below. You added a 'priority' parameter to some methods that have ...
11 years, 9 months ago (2009-03-24 17:35:29 UTC) #3
willchan no longer on Chromium
I think I've addressed all the comments. I wish Rietveld had a UI for making ...
11 years, 9 months ago (2009-03-24 18:14:14 UTC) #4
darin (slow to review)
http://codereview.chromium.org/42541/diff/1014/1016 File net/http/http_request_info.h (right): http://codereview.chromium.org/42541/diff/1014/1016#newcode8 Line 8: #include <string> those are good points, and since ...
11 years, 9 months ago (2009-03-24 18:29:39 UTC) #5
wtc
LGTM. To link this CL to the bug, click "Edit Issue" in Rietveld and add ...
11 years, 9 months ago (2009-03-24 20:54:30 UTC) #6
wtc
http://codereview.chromium.org/42541/diff/56/4022 File net/base/client_socket_pool.cc (right): http://codereview.chromium.org/42541/diff/56/4022#newcode54 Line 54: pending_requests->insert(it, r); One more thing: we may want ...
11 years, 9 months ago (2009-03-24 21:07:51 UTC) #7
willchan no longer on Chromium
Thanks for the explanation on the R= and BUG= stuff. It seems like another thing ...
11 years, 9 months ago (2009-03-24 21:41:12 UTC) #8
wtc
11 years, 9 months ago (2009-03-24 21:59:45 UTC) #9
LGTM.

I'm not sure which STL container is right.  It seems that
with the current code, std::list would be the simplest
container for the job.  If the number of priorities is
known, we can also use that many std::deque's (one for each
prioriti level).

Powered by Google App Engine
This is Rietveld 408576698