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

Issue 1414723008: Add a way to cancel deferred navigations in NavigationHandle (Closed)

Created:
5 years, 1 month ago by clamy
Modified:
5 years, 1 month ago
CC:
chromium-reviews, loading-reviews_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a way to cancel deferred navigations in NavigationHandle This CL introduces a way to cancel deferred navigations in NavigationHandle. It also adds a CANCEL value for the NavigationThrottles that indicates that the navigation should be cancelled without the issuer making it like it was never issued. BUG=537634 Committed: https://crrev.com/e8853384ca0c7ed581bc38c2e4b2a23475d81eb9 Cr-Commit-Position: refs/heads/master@{#360325}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed Nasko's comments #

Total comments: 8

Patch Set 3 : Addressed Nasko's comments #

Total comments: 12

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -19 lines) Patch
M chrome/browser/apps/app_url_redirector.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/navigation_interception/intercept_navigation_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/navigation_interception/intercept_navigation_throttle.h View 2 chunks +13 lines, -1 line 0 comments Download
M components/navigation_interception/intercept_navigation_throttle.cc View 1 2 3 2 chunks +80 lines, -7 lines 0 comments Download
M components/navigation_interception/intercept_navigation_throttle_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 7 chunks +33 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 5 chunks +102 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/navigation_throttle.h View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (9 generated)
clamy
@nasko: PTAL. This is part of a series of patch to convert the DataReductionproxyResourceThrottle in ...
5 years, 1 month ago (2015-11-04 15:41:53 UTC) #3
nasko
Mostly nits. https://codereview.chromium.org/1414723008/diff/1/components/navigation_interception/intercept_navigation_throttle.cc File components/navigation_interception/intercept_navigation_throttle.cc (right): https://codereview.chromium.org/1414723008/diff/1/components/navigation_interception/intercept_navigation_throttle.cc#newcode87 components/navigation_interception/intercept_navigation_throttle.cc:87: RunCallback( If the callback can destruct this ...
5 years, 1 month ago (2015-11-04 22:44:27 UTC) #4
clamy
Thanks! https://codereview.chromium.org/1414723008/diff/1/components/navigation_interception/intercept_navigation_throttle.cc File components/navigation_interception/intercept_navigation_throttle.cc (right): https://codereview.chromium.org/1414723008/diff/1/components/navigation_interception/intercept_navigation_throttle.cc#newcode87 components/navigation_interception/intercept_navigation_throttle.cc:87: RunCallback( On 2015/11/04 22:44:26, nasko (slow to review) ...
5 years, 1 month ago (2015-11-05 15:52:24 UTC) #6
nasko
LGTM with a few nits and comments to be added. https://codereview.chromium.org/1414723008/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/1414723008/diff/1/content/browser/frame_host/navigation_request.cc#newcode293 ...
5 years, 1 month ago (2015-11-06 17:31:59 UTC) #7
clamy
@nasko: thanks! Updated the comments in the latest version @mnaganov: PTAL at the changes in ...
5 years, 1 month ago (2015-11-09 13:56:27 UTC) #9
nasko
Just one nit on a comment. The rest are awesome! Thanks for adding them. https://codereview.chromium.org/1414723008/diff/60001/content/public/browser/navigation_throttle.h ...
5 years, 1 month ago (2015-11-09 17:31:18 UTC) #11
mnaganov (inactive)
Nice job! LGTM with nits. https://codereview.chromium.org/1414723008/diff/60001/components/navigation_interception/intercept_navigation_throttle.cc File components/navigation_interception/intercept_navigation_throttle.cc (right): https://codereview.chromium.org/1414723008/diff/60001/components/navigation_interception/intercept_navigation_throttle.cc#newcode114 components/navigation_interception/intercept_navigation_throttle.cc:114: if (should_ignore_navigation) nit: Curly ...
5 years, 1 month ago (2015-11-09 17:42:42 UTC) #12
clamy
Thanks! @asargent: PTAL at the changes in chrome/browser/apps https://codereview.chromium.org/1414723008/diff/60001/components/navigation_interception/intercept_navigation_throttle.cc File components/navigation_interception/intercept_navigation_throttle.cc (right): https://codereview.chromium.org/1414723008/diff/60001/components/navigation_interception/intercept_navigation_throttle.cc#newcode114 components/navigation_interception/intercept_navigation_throttle.cc:114: if ...
5 years, 1 month ago (2015-11-10 11:58:53 UTC) #14
clamy
@asargent: friendly ping :)
5 years, 1 month ago (2015-11-13 14:24:56 UTC) #15
clamy
@benwells: PTAL at the changes in chrome/browser/apps
5 years, 1 month ago (2015-11-17 14:32:24 UTC) #17
asargent_no_longer_on_chrome
On 2015/11/13 14:24:56, clamy wrote: > @asargent: friendly ping :) Apologies for delay - I ...
5 years, 1 month ago (2015-11-17 17:39:28 UTC) #18
asargent_no_longer_on_chrome
lgtm
5 years, 1 month ago (2015-11-17 17:41:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414723008/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414723008/80001
5 years, 1 month ago (2015-11-18 10:41:46 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 1 month ago (2015-11-18 12:49:06 UTC) #23
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 12:50:05 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e8853384ca0c7ed581bc38c2e4b2a23475d81eb9
Cr-Commit-Position: refs/heads/master@{#360325}

Powered by Google App Engine
This is Rietveld 408576698