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

Issue 460108: Implement ResourceQueue, an object that makes it easy to delay starting (Closed)

Created:
11 years ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Matt Perry
Visibility:
Public.

Description

Implement ResourceQueue, an object that makes it easy to delay starting requests in ResourceDispatcherHost until specified conditions are met. Make UserScriptListener use ResourceQueue. This is the first step toward waiting for the privacy blacklists to load. TEST=Covered by unit_tests. BUG=21541 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34271

Patch Set 1 #

Total comments: 8

Patch Set 2 : fixes #

Patch Set 3 : updates #

Total comments: 6

Patch Set 4 : nitfixing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -89 lines) Patch
M chrome/browser/extensions/user_script_listener.h View 1 2 3 4 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/extensions/user_script_listener.cc View 1 2 2 chunks +23 lines, -30 lines 0 comments Download
M chrome/browser/renderer_host/async_resource_handler.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/cross_site_resource_handler.h View 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/cross_site_resource_handler.cc View 5 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.h View 3 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/download_throttling_resource_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/renderer_host/global_request_id.h View 3 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 5 chunks +6 lines, -20 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 2 8 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/resource_queue.h View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/resource_queue.cc View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/resource_queue_unittest.cc View 1 2 1 chunk +275 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_cert_error_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_error_handler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Paweł Hajdan Jr.
darin, jam: Please review. mpcomplete: FYI.
11 years ago (2009-12-07 14:59:53 UTC) #1
darin (slow to review)
http://codereview.chromium.org/460108/diff/1/2 File chrome/browser/extensions/user_script_listener.cc (right): http://codereview.chromium.org/460108/diff/1/2#newcode30 chrome/browser/extensions/user_script_listener.cc:30: const ResourceDispatcherHostRequestInfo& request_info, (it really seems like we should ...
11 years ago (2009-12-07 22:30:31 UTC) #2
Paweł Hajdan Jr.
On 2009/12/07 22:30:31, darin wrote: > http://codereview.chromium.org/460108/diff/1/4 > File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): > > http://codereview.chromium.org/460108/diff/1/4#newcode246 > ...
11 years ago (2009-12-08 10:18:28 UTC) #3
darin (slow to review)
On 2009/12/08 10:18:28, Paweł Hajdan Jr. wrote: > On 2009/12/07 22:30:31, darin wrote: > > ...
11 years ago (2009-12-09 00:04:10 UTC) #4
Paweł Hajdan Jr.
So... patch updated! Please review the comments especially carefully. If some of them can be ...
11 years ago (2009-12-09 13:43:32 UTC) #5
Paweł Hajdan Jr.
ping!
11 years ago (2009-12-10 07:36:09 UTC) #6
darin (slow to review)
looks good. just minor nits: http://codereview.chromium.org/460108/diff/2007/3014 File chrome/browser/extensions/user_script_listener.h (right): http://codereview.chromium.org/460108/diff/2007/3014#newcode16 chrome/browser/extensions/user_script_listener.h:16: struct GlobalRequestID; nit: list ...
11 years ago (2009-12-10 18:46:02 UTC) #7
Paweł Hajdan Jr.
Patch updated, please take another look.
11 years ago (2009-12-10 19:03:35 UTC) #8
darin (slow to review)
11 years ago (2009-12-10 19:08:48 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698