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

Issue 55513002: Add ResourceType::PING. and mark those requests as detachable. (Closed)

Created:
7 years, 1 month ago by davidben
Modified:
7 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add ResourceType::PING and mark those requests as detachable. This avoids cancelling <a ping> requests on cross-process navigations when the owning renderer dies. Actually assigning resources this type is conditioned on a currently undefined WEBKIT_HAS_TARGET_PING symbol to be defined in a follow-up Blink CL. The #ifdef can then be removed when that lands. BUG=302816 TEST=ResourceDispatcherHostTest.DeletedFilterDetachable Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236807

Patch Set 1 #

Patch Set 2 : histograms.xml #

Total comments: 2

Patch Set 3 : Remove LAST_TYPE #

Patch Set 4 : Connect ResourceType::PING up to RDHI. #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : Use DCHECK_EQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -19 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 1 chunk +29 lines, -18 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -1 line 0 comments Download
M webkit/common/resource_type.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M webkit/common/resource_type.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
davidben
To be followed by https://codereview.chromium.org/55203003/ in Blink. Plan, patterned after how ResourceType::XHR was added. 1. ...
7 years, 1 month ago (2013-10-31 23:02:22 UTC) #1
davidben
+asvitkine for histograms.xml change.
7 years, 1 month ago (2013-11-01 15:43:29 UTC) #2
Alexei Svitkine (slow)
LGTM with a comment https://codereview.chromium.org/55513002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/55513002/diff/80001/tools/metrics/histograms/histograms.xml#newcode27113 tools/metrics/histograms/histograms.xml:27113: + <int value="15" label="LAST_TYPE"/> "LAST_TYPE" ...
7 years, 1 month ago (2013-11-01 15:49:30 UTC) #3
davidben
https://codereview.chromium.org/55513002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/55513002/diff/80001/tools/metrics/histograms/histograms.xml#newcode27113 tools/metrics/histograms/histograms.xml:27113: + <int value="15" label="LAST_TYPE"/> On 2013/11/01 15:49:30, Alexei Svitkine ...
7 years, 1 month ago (2013-11-01 15:59:28 UTC) #4
davidben
I suppose there's no reason why I can't hook this up to the RDHI in ...
7 years, 1 month ago (2013-11-01 19:28:12 UTC) #5
James Simonsen
lgtm
7 years, 1 month ago (2013-11-01 21:04:51 UTC) #6
jamesr
lgtm
7 years, 1 month ago (2013-11-04 19:19:17 UTC) #7
mmenke
The rebase LGTM https://codereview.chromium.org/55513002/diff/270001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/55513002/diff/270001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1043 content/browser/loader/resource_dispatcher_host_unittest.cc:1043: DCHECK(info_ping->filter() == filter_.get()); nit: DCHECK_EQ?
7 years, 1 month ago (2013-11-21 15:28:45 UTC) #8
davidben
https://codereview.chromium.org/55513002/diff/270001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/55513002/diff/270001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1043 content/browser/loader/resource_dispatcher_host_unittest.cc:1043: DCHECK(info_ping->filter() == filter_.get()); On 2013/11/21 15:28:45, mmenke wrote: > ...
7 years, 1 month ago (2013-11-22 16:03:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/55513002/400001
7 years, 1 month ago (2013-11-22 16:04:34 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-22 19:24:47 UTC) #11
Message was sent while issue was closed.
Change committed as 236807

Powered by Google App Engine
This is Rietveld 408576698