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

Issue 124113003: Remove calls of PrerenderTracker::TryCancel and TryCancelOnIOThread in ChromeResourceDispatcherHost… (Closed)

Created:
6 years, 11 months ago by jam
Modified:
6 years, 11 months ago
Reviewers:
cbentzel, davidben
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Remove calls of PrerenderTracker::TryCancel and TryCancelOnIOThread in ChromeResourceDispatcherHostDelegate. These short-circuited cancelling the prerendering on the IO thread. Instead, I moved cancelling the prerender on the UI thread since both of these calls end up going to the UI thread right after. This also removes the last calls of ResourceRequestInfo::GetAssociatedRenderView, which I will remove in a followup. BUG=304341 R=davidben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243184

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : use a test ClientCertStore #

Patch Set 5 : sync #

Patch Set 6 : sync #

Patch Set 7 : simplify #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -163 lines) Patch
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 5 chunks +39 lines, -0 lines 2 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -43 lines 0 comments Download
M chrome/browser/ui/login/login_prompt.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 2 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -20 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/loader/resource_loader_delegate.h View 1 2 3 4 5 2 chunks +0 lines, -7 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -10 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 4 5 2 chunks +0 lines, -14 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M content/shell/browser/shell_resource_dispatcher_host_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/browser/shell_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 1 chunk +3 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jam
https://codereview.chromium.org/124113003/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/124113003/diff/1/chrome/browser/chrome_content_browser_client.cc#oldcode1818 chrome/browser/chrome_content_browser_client.cc:1818: if (!rfh) { this is unnecessary since WebContents::FromRenderFrameHost handles ...
6 years, 11 months ago (2014-01-03 23:22:10 UTC) #1
jam
btw the PrerenderBrowserTest.PrerenderSSLClientCert* tests are failing because the bots have no certificates. On my dev ...
6 years, 11 months ago (2014-01-05 07:46:55 UTC) #2
jam
On 2014/01/05 07:46:55, jam wrote: > btw the PrerenderBrowserTest.PrerenderSSLClientCert* tests are failing because > the ...
6 years, 11 months ago (2014-01-05 07:47:45 UTC) #3
jam
ok nvm all the comments above, I found a way to use a test ClientCertStore ...
6 years, 11 months ago (2014-01-06 00:02:34 UTC) #4
cbentzel
Sorry for delay - I'm going to have davidben take this over as he's been ...
6 years, 11 months ago (2014-01-06 11:29:37 UTC) #5
davidben
LGTM. https://codereview.chromium.org/124113003/diff/1370002/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/124113003/diff/1370002/chrome/browser/prerender/prerender_browsertest.cc#newcode2538 chrome/browser/prerender/prerender_browsertest.cc:2538: const net::CertificateList response_; Remnant from a previous version? ...
6 years, 11 months ago (2014-01-06 22:14:47 UTC) #6
jam
6 years, 11 months ago (2014-01-06 22:20:59 UTC) #7
https://codereview.chromium.org/124113003/diff/1370002/chrome/browser/prerend...
File chrome/browser/prerender/prerender_browsertest.cc (right):

https://codereview.chromium.org/124113003/diff/1370002/chrome/browser/prerend...
chrome/browser/prerender/prerender_browsertest.cc:2538: const
net::CertificateList response_;
On 2014/01/06 22:14:47, David Benjamin wrote:
> Remnant from a previous version?

oops, copy and paste. removed

https://codereview.chromium.org/124113003/diff/1370002/chrome/browser/ui/logi...
File chrome/browser/ui/login/login_prompt.cc (right):

https://codereview.chromium.org/124113003/diff/1370002/chrome/browser/ui/logi...
chrome/browser/ui/login/login_prompt.cc:434:
prerender_contents->Destroy(prerender::FINAL_STATUS_AUTH_NEEDED);
On 2014/01/06 22:14:47, David Benjamin wrote:
> Do we want to call handler->CancelAuth() here too? Not sure it matters much
> since the WebContents is going away, but that's what the old codepath did.
Dunno
> if some other component is sensitive to the notification.

this will be equivalent to closing the tab; and the code must handle that code
path. the tests all pass, so I'm inclined to leave as is and not add extra code
unless I know for sure that it's needed

Powered by Google App Engine
This is Rietveld 408576698