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

Issue 9113028: Substitute ResourceHandlers with dummy ResourceHandler while request is transferred (Closed)

Created:
8 years, 11 months ago by battre
Modified:
8 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, dpranke-watch+content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, sky
Visibility:
Public.

Description

Substitute ResourceHandlers with dummy ResourceHandler while request is transferred This CL implements a new ResourceHandler that only allows cancelling its request. The idea is that in case a URLRequest is being transferred to a new renderer, we need to get rid of its old ResourceHandlers as these may have dependencies to the old renderer which is about to die. We replace the request's old ResourceHandler with a new TransferredResourceHandler until the request is resumed by the new renderer. BUG=107692 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117658

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed Matt's comments #

Total comments: 4

Patch Set 3 : Renamed paused_resource_handler.* to transferred_resource_handler.* #

Patch Set 4 : Merged with ToT #

Total comments: 4

Patch Set 5 : Addressed Darin's comments #

Total comments: 8

Patch Set 6 : Addressed Darin's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -5 lines) Patch
M chrome/browser/renderer_host/transfer_navigation_resource_handler.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
A content/browser/renderer_host/doomed_resource_handler.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/renderer_host/doomed_resource_handler.cc View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 2 chunks +15 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.cc View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
battre
Please review. Thanks, Dominic http://codereview.chromium.org/9113028/diff/1/content/browser/renderer_host/resource_dispatcher_host.cc File content/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/9113028/diff/1/content/browser/renderer_host/resource_dispatcher_host.cc#newcode1321 content/browser/renderer_host/resource_dispatcher_host.cc:1321: info->set_resource_handler(new AllowCancelResourceHandler()); We cannot put ...
8 years, 11 months ago (2012-01-05 22:55:16 UTC) #1
Matt Perry
http://codereview.chromium.org/9113028/diff/1/content/browser/renderer_host/allow_cancel_resource_handler.h File content/browser/renderer_host/allow_cancel_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/1/content/browser/renderer_host/allow_cancel_resource_handler.h#newcode13 content/browser/renderer_host/allow_cancel_resource_handler.h:13: class AllowCancelResourceHandler : public ResourceHandler { This is a ...
8 years, 11 months ago (2012-01-05 23:52:44 UTC) #2
battre
http://codereview.chromium.org/9113028/diff/1/content/browser/renderer_host/allow_cancel_resource_handler.h File content/browser/renderer_host/allow_cancel_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/1/content/browser/renderer_host/allow_cancel_resource_handler.h#newcode13 content/browser/renderer_host/allow_cancel_resource_handler.h:13: class AllowCancelResourceHandler : public ResourceHandler { On 2012/01/05 23:52:44, ...
8 years, 11 months ago (2012-01-06 02:18:02 UTC) #3
Matt Perry
lgtm
8 years, 11 months ago (2012-01-06 02:22:39 UTC) #4
battre
+sky for OWNERS approval
8 years, 11 months ago (2012-01-06 02:26:25 UTC) #5
sky
I don't know this particular area well enough to review it. Could you get one ...
8 years, 11 months ago (2012-01-06 16:32:54 UTC) #6
battre
-sky +darin for OWNERS approval
8 years, 11 months ago (2012-01-06 17:48:12 UTC) #7
Charlie Reis
http://codereview.chromium.org/9113028/diff/2006/content/browser/renderer_host/paused_resource_handler.h File content/browser/renderer_host/paused_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/2006/content/browser/renderer_host/paused_resource_handler.h#newcode1 content/browser/renderer_host/paused_resource_handler.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 11 months ago (2012-01-06 17:54:51 UTC) #8
battre
http://codereview.chromium.org/9113028/diff/2006/content/browser/renderer_host/paused_resource_handler.h File content/browser/renderer_host/paused_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/2006/content/browser/renderer_host/paused_resource_handler.h#newcode1 content/browser/renderer_host/paused_resource_handler.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 11 months ago (2012-01-06 18:39:04 UTC) #9
Charlie Reis
Thanks. LGTM.
8 years, 11 months ago (2012-01-06 18:54:38 UTC) #10
Matt Perry
On 2012/01/06 18:39:04, battre wrote: > http://codereview.chromium.org/9113028/diff/2006/content/browser/renderer_host/paused_resource_handler.h > File content/browser/renderer_host/paused_resource_handler.h (right): > > http://codereview.chromium.org/9113028/diff/2006/content/browser/renderer_host/paused_resource_handler.h#newcode1 > ...
8 years, 11 months ago (2012-01-06 19:35:33 UTC) #11
battre
On 2012/01/06 19:35:33, Matt Perry wrote: > On 2012/01/06 18:39:04, battre wrote: > > > ...
8 years, 11 months ago (2012-01-06 19:51:59 UTC) #12
darin (slow to review)
http://codereview.chromium.org/9113028/diff/19001/content/browser/renderer_host/transferred_resource_handler.h File content/browser/renderer_host/transferred_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/19001/content/browser/renderer_host/transferred_resource_handler.h#newcode15 content/browser/renderer_host/transferred_resource_handler.h:15: class TransferredResourceHandler : public ResourceHandler { Perhaps it would ...
8 years, 11 months ago (2012-01-06 22:59:02 UTC) #13
battre
http://codereview.chromium.org/9113028/diff/19001/content/browser/renderer_host/transferred_resource_handler.h File content/browser/renderer_host/transferred_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/19001/content/browser/renderer_host/transferred_resource_handler.h#newcode15 content/browser/renderer_host/transferred_resource_handler.h:15: class TransferredResourceHandler : public ResourceHandler { On 2012/01/06 22:59:02, ...
8 years, 11 months ago (2012-01-06 23:37:55 UTC) #14
darin (slow to review)
On Fri, Jan 6, 2012 at 3:37 PM, <battre@chromium.org> wrote: > > http://codereview.chromium.**org/9113028/diff/19001/** > content/browser/renderer_host/**transferred_resource_handler.h<http://codereview.chromium.org/9113028/diff/19001/content/browser/renderer_host/transferred_resource_handler.h> ...
8 years, 11 months ago (2012-01-07 00:08:45 UTC) #15
battre
> > Or... maybe you could rename TransferredResourceHandler to > >> DoomedResourceHandler. It expects to ...
8 years, 11 months ago (2012-01-09 19:49:30 UTC) #16
battre
On 2012/01/09 19:49:30, battre wrote: > > > Or... maybe you could rename TransferredResourceHandler to ...
8 years, 11 months ago (2012-01-11 22:00:09 UTC) #17
darin (slow to review)
http://codereview.chromium.org/9113028/diff/23001/content/browser/renderer_host/doomed_resource_handler.h File content/browser/renderer_host/doomed_resource_handler.h (right): http://codereview.chromium.org/9113028/diff/23001/content/browser/renderer_host/doomed_resource_handler.h#newcode13 content/browser/renderer_host/doomed_resource_handler.h:13: // requests while activated for a URLRequest. This is ...
8 years, 11 months ago (2012-01-12 06:22:51 UTC) #18
battre
I have addressed your comments. Please push this into the CQ if it LGTY (we ...
8 years, 11 months ago (2012-01-13 15:52:20 UTC) #19
darin (slow to review)
LGTM
8 years, 11 months ago (2012-01-13 17:13:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/9113028/31001
8 years, 11 months ago (2012-01-13 17:13:54 UTC) #21
commit-bot: I haz the power
8 years, 11 months ago (2012-01-13 18:42:19 UTC) #22
Change committed as 117658

Powered by Google App Engine
This is Rietveld 408576698