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

Issue 171099: Merge r21417 to 172.... (Closed)

Created:
11 years, 4 months ago by Mark Larson
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Base URL:
svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Visibility:
Public.

Description

Merge r21417 to 172. (Part 1, r22067 to follow) Add support to URLRequest for deferring redirects. I chose to add an out parameter to OnReceivedRedirect because it allows for the default behavior to remain the same. I considered adding a ContinueAfterRedirect method that all OnReceivedRedirect implementations would need to call, but this caused one annoying problem: In the case of a ChromePlugin, it is possible for the URLRequest to get deleted inside the handler for the redirect. This would make it hard to subsequently call a method on the URLRequest since I would need to have a way to determine if the URLRequest had been deleted. TEST=covered by unit tests BUG=16413, 6442 R=eroman,wtc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23616

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -56 lines) Patch
MM chrome/browser/chrome_plugin_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
MM chrome/browser/net/url_fetcher.cc View 1 chunk +0 lines, -2 lines 0 comments Download
MM chrome/browser/plugin_process_host.cc View 2 chunks +0 lines, -6 lines 0 comments Download
MM chrome/browser/renderer_host/resource_dispatcher_host.h View 1 chunk +2 lines, -1 line 0 comments Download
MM chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/chrome_plugin_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher.cc View 2 chunks +0 lines, -7 lines 0 comments Download
MM net/tools/testserver/testserver.py View 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request.h View 2 chunks +16 lines, -3 lines 0 comments Download
M net/url_request/url_request.cc View 5 chunks +10 lines, -1 line 0 comments Download
M net/url_request/url_request_job.h View 4 chunks +6 lines, -1 line 0 comments Download
M net/url_request/url_request_job.cc View 7 chunks +31 lines, -23 lines 0 comments Download
MM net/url_request/url_request_unittest.h View 4 chunks +10 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 6 chunks +77 lines, -5 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
darin (slow to review)
LGTM
11 years, 4 months ago (2009-08-18 05:58:12 UTC) #1
Mark Larson
Final patch set that I'm going to commit. http://codereview.chromium.org/171099/diff/1/9 File net/url_request/url_request.cc (right): http://codereview.chromium.org/171099/diff/1/9#newcode350 Line 350: ...
11 years, 4 months ago (2009-08-18 06:22:36 UTC) #2
darin (slow to review)
11 years, 4 months ago (2009-08-18 06:45:05 UTC) #3
LGTM

http://codereview.chromium.org/171099/diff/1/9
File net/url_request/url_request.cc (right):

http://codereview.chromium.org/171099/diff/1/9#newcode350
Line 350: job_->Kill();
On 2009/08/18 06:22:36, Mark Larson wrote:
> Not sure how this made it in. Need to kill it and find out if it's missing
from
> somewhere else.
> 
> Need to check final CL vs. this review.
> 
> This is OK. It's in the final CL (just not in
> http://codereview.chromium.org/155897)
> 

Good catch.  That is redundant.  IIRC, I was planning on moving it from the
callsite of OrphanJob.  It is harmless that it is called twice.

Powered by Google App Engine
This is Rietveld 408576698