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

Issue 67019: URLRequest::Interceptor enhancements... (Closed)

Created:
11 years, 8 months ago by michaeln
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

URLRequest::Interceptor enhancements1) Allow an interceptor to change its mind and not intercept after all. This allows the decision to start or not to start to be made asynchronously.2) Allow an interceptor to intercept on error conditions if the original job fails. This is to support the FALLBACK semantics in the appcache.Info about where this is going can be found in the appcache design doc at https://docs.google.com/a/google.com/Doc?docid=agv6ghfsqr_15f749cgt3&hl=enI still have to put together test cases, so I'm not ready to submit this yet, but wanted to get some feedback at this point. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13877

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Total comments: 7

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 12

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 1

Patch Set 15 : '' #

Patch Set 16 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+802 lines, -85 lines) Patch
M chrome/browser/renderer_host/resource_dispatcher_host.h View 15 2 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 15 3 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +50 lines, -14 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +48 lines, -4 lines 0 comments Download
M net/url_request/url_request_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +11 lines, -6 lines 0 comments Download
M net/url_request/url_request_job_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +12 lines, -0 lines 0 comments Download
M net/url_request/url_request_job_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +42 lines, -2 lines 0 comments Download
M net/url_request/url_request_test_job.h View 5 6 7 8 9 10 11 12 13 14 15 3 chunks +59 lines, -11 lines 0 comments Download
M net/url_request/url_request_test_job.cc View 5 6 7 8 9 10 11 12 13 14 15 7 chunks +113 lines, -37 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +447 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
michaeln
11 years, 8 months ago (2009-04-09 23:13:57 UTC) #1
Matt Perry
Here's a summary of our in-person discussion: There's 2 ugly bits to this approach: 1. ...
11 years, 8 months ago (2009-04-10 01:43:40 UTC) #2
Matt Perry
cool, looking better. might want to run it by darin to verify that the way ...
11 years, 8 months ago (2009-04-13 18:42:03 UTC) #3
michaeln
new snapshot uploaded http://codereview.chromium.org/67019/diff/1013/23 File net/url_request/url_request.cc (right): http://codereview.chromium.org/67019/diff/1013/23#newcode79 Line 79: std::for_each(specific_user_data_->begin(), That would be perfect... ...
11 years, 8 months ago (2009-04-13 22:50:00 UTC) #4
Matt Perry
Looks good http://codereview.chromium.org/67019/diff/2003/31 File net/url_request/url_request.h (right): http://codereview.chromium.org/67019/diff/2003/31#newcode91 Line 91: // called when there is no ...
11 years, 8 months ago (2009-04-13 23:27:39 UTC) #5
michaeln
hi again... looking for a final review... added unit tests and removed the two files ...
11 years, 8 months ago (2009-04-15 19:18:09 UTC) #6
Matt Perry
Mostly looks good, assuming all the unit tests still pass after the TestRequest refactor. http://codereview.chromium.org/67019/diff/3009/3016 ...
11 years, 8 months ago (2009-04-15 19:53:39 UTC) #7
michaeln
The try servers are happy so far. Are there tests that they don't run that ...
11 years, 8 months ago (2009-04-15 21:52:26 UTC) #8
Matt Perry
LGTM http://codereview.chromium.org/67019/diff/3009/3017 File net/url_request/url_request_test_job.cc (right): http://codereview.chromium.org/67019/diff/3009/3017#newcode47 Line 47: return StringPrintf( On 2009/04/15 21:52:26, michaeln wrote: ...
11 years, 8 months ago (2009-04-15 22:17:26 UTC) #9
darin (slow to review)
looks good! just some minor tweaks: http://codereview.chromium.org/67019/diff/5039/99 File net/url_request/url_request.h (right): http://codereview.chromium.org/67019/diff/5039/99#newcode547 Line 547: typedef std::map<void*, ...
11 years, 8 months ago (2009-04-15 23:03:59 UTC) #10
michaeln
11 years, 8 months ago (2009-04-16 01:42:02 UTC) #11
Thnx for taking a look.

Sure, I'll make those changes. I'll have to add a few files to the CL to switch
current user_data() and set_user_data() callers over, but there aren't many of
these. The only real consumer(s) of these methods is ResourceDispatcherHost and
related classes. Since it has a static method to retrieve the RDH's user data,
I'll use NULL as the 'key' for RDH's user data.

Powered by Google App Engine
This is Rietveld 408576698