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

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed)

Created:
8 years, 8 months ago by Jói
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, yzshen1, Sergey Ulanov, tim (not reviewing), darin (slow to review)
Visibility:
Public.

Description

Make URLRequestThrottlerManager a member of URLRequestContext. This addresses a long-standing TODO and allows us to simplify the logic in the class a bit as it now lives fully on the IO thread. It should also allow further cleanup in follow-up changes e.g. to stop using scoped_refptr for the URLRequestThrottlerEntry instances. BUG=119760 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134963

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Ready for review. #

Total comments: 15

Patch Set 4 : Respond to review comments. #

Patch Set 5 : Merge LKGR (pure merge) #

Total comments: 1

Patch Set 6 : Make throttler_manager() optional. #

Total comments: 6

Patch Set 7 : Respond to review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -226 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 3 chunks +0 lines, -24 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc View 1 2 3 5 chunks +39 lines, -29 lines 0 comments Download
M content/common/net/url_fetcher_core.h View 1 2 3 4 5 1 chunk +12 lines, -6 lines 0 comments Download
M content/common/net/url_fetcher_core.cc View 1 2 3 4 5 6 5 chunks +39 lines, -22 lines 0 comments Download
M content/common/net/url_fetcher_impl_unittest.cc View 1 2 3 4 5 24 chunks +112 lines, -69 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.h View 3 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 4 chunks +11 lines, -4 lines 0 comments Download
M net/url_request/url_request_throttler_manager.h View 1 2 4 chunks +2 lines, -12 lines 0 comments Download
M net/url_request/url_request_throttler_manager.cc View 2 chunks +33 lines, -59 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Jói
This is a bit of a preview as I still have to fix url_fetcher_impl_unittest.cc to ...
8 years, 8 months ago (2012-04-23 23:17:03 UTC) #1
Jói
This is ready for review now. Eric: Main reviewer. Will: OWNERS approval for ProfileIOData stuff. ...
8 years, 8 months ago (2012-04-24 15:24:36 UTC) #2
eroman
lgtm http://codereview.chromium.org/10203002/diff/5007/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/10203002/diff/5007/chrome/browser/chrome_browser_main.cc#newcode121 chrome/browser/chrome_browser_main.cc:121: #include "net/url_request/url_request_throttler_manager.h" Can this be removed as well? ...
8 years, 8 months ago (2012-04-24 19:05:56 UTC) #3
Jói
Thanks Eric. Patch set 4 responds to your feedback, and also fixes a few more ...
8 years, 7 months ago (2012-04-27 13:20:26 UTC) #4
Jói
Adding John for content/OWNERS approval. CCing OWNERS for trivial changes under chrome/browser/sync/, remoting/ and webkit/; ...
8 years, 7 months ago (2012-04-27 13:25:00 UTC) #5
jam
lgtm for content/shell (eroman has owners in content/common/net) is a throttle manager always required, or ...
8 years, 7 months ago (2012-04-27 15:04:58 UTC) #6
willchan no longer on Chromium
On 2012/04/27 15:04:58, John Abd-El-Malek wrote: > lgtm for content/shell (eroman has owners in content/common/net) ...
8 years, 7 months ago (2012-04-27 15:19:58 UTC) #7
willchan no longer on Chromium
The profile/ code is correct. But I'm not a big fan of updating all the ...
8 years, 7 months ago (2012-04-27 17:39:25 UTC) #8
Jói
I was thinking it was an awful lot of work adding this to URLRequestContext, because ...
8 years, 7 months ago (2012-04-27 18:32:06 UTC) #9
Jói
Just realized something: URLRequestThrottler* contains two things. One is the exponential back-off behavior which is ...
8 years, 7 months ago (2012-04-27 22:05:24 UTC) #10
willchan no longer on Chromium
I think I'm fine losing the behavior. The overwhelming majority of our URLFetchers use the ...
8 years, 7 months ago (2012-04-27 22:17:53 UTC) #11
Jói
OK cool. Just asking because that behavior has been around since way before the URLRequestThrottlerManager ...
8 years, 7 months ago (2012-04-27 22:31:35 UTC) #12
willchan no longer on Chromium
Great, me too. Cheers. On Fri, Apr 27, 2012 at 3:30 PM, Jói Sigurðsson <joi@chromium.org> ...
8 years, 7 months ago (2012-04-27 22:32:59 UTC) #13
darin (slow to review)
LGTM for webkit/
8 years, 7 months ago (2012-04-30 06:16:46 UTC) #14
Jói
Will, please take another look. I've made URLRequestThrottlerManager optional on the URLRequestContext, which makes this ...
8 years, 7 months ago (2012-05-02 16:15:00 UTC) #15
willchan no longer on Chromium
lgtm http://codereview.chromium.org/10203002/diff/47004/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/10203002/diff/47004/chrome/browser/io_thread.cc#newcode222 chrome/browser/io_thread.cc:222: context->set_throttler_manager(globals->throttler_manager.get()); Just doublechecking you want this one. This ...
8 years, 7 months ago (2012-05-02 16:40:07 UTC) #16
Jói
Thanks, good catch on the system_url_request_context. Cheers, Jói http://codereview.chromium.org/10203002/diff/47004/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/10203002/diff/47004/chrome/browser/io_thread.cc#newcode222 chrome/browser/io_thread.cc:222: context->set_throttler_manager(globals->throttler_manager.get()); ...
8 years, 7 months ago (2012-05-02 16:45:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10203002/59004
8 years, 7 months ago (2012-05-02 17:42:05 UTC) #18
commit-bot: I haz the power
8 years, 7 months ago (2012-05-02 19:20:18 UTC) #19
Change committed as 134963

Powered by Google App Engine
This is Rietveld 408576698