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

Issue 159214: Return Error Status Upon Blocking Requests... (Closed)

Created:
11 years, 5 months ago by idanan
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google), M-A Ruel
Visibility:
Public.

Description

Return Error Status Upon Blocking Requests Blocked requests now return an error status so that the Chrome throbber does not spin indefinitely when blocking URL requests. This code shall be replaced with resource substitution next but gives a better experience until then. Same goes for the added type-based interception. TEST=none BUG=16932 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21536

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -9 lines) Patch
M chrome/browser/net/chrome_url_request_context.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 3 chunks +27 lines, -2 lines 0 comments Download
M net/url_request/url_request.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
idanan
Hi Brett, Here is some temporary code for blacklisted requests to return a failure status ...
11 years, 5 months ago (2009-07-23 20:05:08 UTC) #1
brettw
http://codereview.chromium.org/159214/diff/5/6 File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/159214/diff/5/6#newcode367 Line 367: // TODO(idanan): Send a ResourceResponse to replace the ...
11 years, 5 months ago (2009-07-23 23:53:42 UTC) #2
idanan
All done. Regarding the (void*) cast, the issue was constness of the key parameter in ...
11 years, 5 months ago (2009-07-24 15:19:47 UTC) #3
idanan
Sorry for the previous patch had a typo as I saved. This one compiles!
11 years, 5 months ago (2009-07-24 15:33:03 UTC) #4
brettw
11 years, 5 months ago (2009-07-24 15:52:06 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698