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

Issue 138513002: Plumb network stack information about existence of cached copy (Closed)

Created:
6 years, 11 months ago by Randy Smith (Not in Mondays)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, gavinp+disk_chromium.org, Elly Fong-Jones, jamesr, Chris Evans
Visibility:
Public.

Description

Plumb network stack information about existence of cached copy through to error page. Specifically, add a "stale_copy_in_cache" argument to all of (ordered from Browser->Renderer): * ResourceMsg_RequestComplete IPC message. * ResourceDispatcher::OnRequestComplete * ResourceLoaderBridge::Peer::OnCompletedRequest. * All subclasses of RLB::P::OnCompleted Request, including WebURLLoaderImpl::context::OnCompletedRequest. * Blink WebURLError and ResourceError classes (https://codereview.chromium.org/138493002). * LocalizedError::GetStrings. This is a paired commit with the blink CL https://codereview.chromium.org/138493002. That CL must be landed before this one. BUG=329620 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249527

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove mention of browser tests from net/ #

Patch Set 3 : Shift over to structure for IPC messages." #

Patch Set 4 : Improve commenting. #

Patch Set 5 : Added content and link doctor failure test. #

Patch Set 6 : Cleanup from self-review. #

Patch Set 7 : Sync'd to r246425. #

Patch Set 8 : Share a bit of errorpage_browsertest.cc test code. #

Total comments: 49

Patch Set 9 : Incorporated comments from Matt & Ricardo. #

Total comments: 27

Patch Set 10 : Incorporated rest of Matt's comments. #

Total comments: 27

Patch Set 11 : Cleanly uploaded copy of PS10 #

Patch Set 12 : Incorporated Matt's latest comments. #

Total comments: 6

Patch Set 13 : Sync'd to r247686 after landing https://codereview.chromium.org/138493002. #

Patch Set 14 : Last comments from Matt. #

Total comments: 4

Patch Set 15 : Add a period to the end of a comment. #

Patch Set 16 : Sync'd to r248769. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+735 lines, -60 lines) Patch
M chrome/browser/chromeos/offline/offline_load_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/errorpage_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +123 lines, -2 lines 0 comments Download
M chrome/common/localized_error.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/localized_error.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_localization_peer_unittest.cc View 7 chunks +13 lines, -12 lines 0 comments Download
M chrome/renderer/net/net_error_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/net/net_error_helper_core.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/security_filter_peer.h View 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/security_filter_peer.cc View 6 chunks +9 lines, -3 lines 0 comments Download
A chrome/test/data/nocache.html View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/nocache.html.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -5 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 2 chunks +8 lines, -7 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +20 lines, -5 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +223 lines, -2 lines 0 comments Download
M content/test/content_browser_test.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/content_browser_test.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +18 lines, -5 lines 0 comments Download
A content/test/data/nocache.html View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A content/test/data/nocache.html.mock-http-headers View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A net/http/failing_http_transaction_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A net/http/failing_http_transaction_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +191 lines, -0 lines 0 comments Download
M net/http/http_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -1 line 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M webkit/child/resource_loader_bridge.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/child/webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webkit/child/weburlloader_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/child/weburlloader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 56 (0 generated)
Randy Smith (Not in Mondays)
I'd like to request an initial, high level review of this CL. (I know I'll ...
6 years, 11 months ago (2014-01-14 19:17:24 UTC) #1
jam
On 2014/01/14 19:17:24, rdsmith wrote: > I'd like to request an initial, high level review ...
6 years, 11 months ago (2014-01-15 02:35:39 UTC) #2
rvargas (doing something else)
https://codereview.chromium.org/138513002/diff/1/net/http/http_cache.h File net/http/http_cache.h (right): https://codereview.chromium.org/138513002/diff/1/net/http/http_cache.h#newcode198 net/http/http_cache.h:198: // Reset the network layer to allow for browser ...
6 years, 11 months ago (2014-01-15 03:26:28 UTC) #3
Randy Smith (Not in Mondays)
On 2014/01/14 19:17:24, rdsmith wrote: > I'd like to request an initial, high level review ...
6 years, 11 months ago (2014-01-15 19:07:06 UTC) #4
jamesr
You'll have to find the right owner, but I think the site isolation folks are ...
6 years, 11 months ago (2014-01-15 19:12:02 UTC) #5
Randy Smith (Not in Mondays)
Incorporated Ricardo's comment. https://codereview.chromium.org/138513002/diff/1/net/http/http_cache.h File net/http/http_cache.h (right): https://codereview.chromium.org/138513002/diff/1/net/http/http_cache.h#newcode198 net/http/http_cache.h:198: // Reset the network layer to ...
6 years, 11 months ago (2014-01-15 19:14:43 UTC) #6
Randy Smith (Not in Mondays)
Nate: Would you be willing to take a high-level look at webkit/* in this CL ...
6 years, 11 months ago (2014-01-15 19:17:07 UTC) #7
rvargas (doing something else)
https://codereview.chromium.org/138513002/diff/1/net/http/http_cache.h File net/http/http_cache.h (right): https://codereview.chromium.org/138513002/diff/1/net/http/http_cache.h#newcode201 net/http/http_cache.h:201: scoped_ptr<HttpTransactionFactory> SetNetworkLayerForTesting( On 2014/01/15 19:14:43, rdsmith wrote: > On ...
6 years, 11 months ago (2014-01-15 19:39:45 UTC) #8
Randy Smith (Not in Mondays)
Ok, I'd like to officially request reviews for this code. Elly (ellyjones@): Could you look ...
6 years, 11 months ago (2014-01-23 19:48:20 UTC) #9
mmenke
Quick nits - I think this approach to testing looks reasonable, though I haven't dug ...
6 years, 11 months ago (2014-01-23 20:40:51 UTC) #10
mmenke
https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc File net/http/test_network_transaction.cc (right): https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc#newcode19 net/http/test_network_transaction.cc:19: DCHECK_NE(OK, err); This should be a CHECK, so it ...
6 years, 11 months ago (2014-01-23 20:59:18 UTC) #11
Randy Smith (Not in Mondays)
Matt: I'm responding early (before uploading a new PS or incorporating all comments) because there's ...
6 years, 11 months ago (2014-01-23 22:12:32 UTC) #12
mmenke
https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc File net/http/test_network_transaction.cc (right): https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc#newcode92 net/http/test_network_transaction.cc:92: load_timing_info->send_end = base::TimeTicks::Now(); On 2014/01/23 22:12:33, rdsmith wrote: > ...
6 years, 11 months ago (2014-01-23 22:30:13 UTC) #13
rvargas (doing something else)
https://codereview.chromium.org/138513002/diff/560001/net/http/http_cache.h File net/http/http_cache.h (right): https://codereview.chromium.org/138513002/diff/560001/net/http/http_cache.h#newcode198 net/http/http_cache.h:198: // Reset the network layer to allow for tests ...
6 years, 11 months ago (2014-01-23 23:24:48 UTC) #14
mmenke
https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc File net/http/test_network_transaction.cc (right): https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc#newcode19 net/http/test_network_transaction.cc:19: DCHECK_NE(OK, err); On 2014/01/23 23:24:49, rvargas wrote: > On ...
6 years, 11 months ago (2014-01-23 23:27:17 UTC) #15
rvargas (doing something else)
https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc File net/http/test_network_transaction.cc (right): https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc#newcode19 net/http/test_network_transaction.cc:19: DCHECK_NE(OK, err); On 2014/01/23 23:27:18, mmenke wrote: > On ...
6 years, 11 months ago (2014-01-24 02:09:59 UTC) #16
rvargas (doing something else)
https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc File net/http/test_network_transaction.cc (right): https://codereview.chromium.org/138513002/diff/560001/net/http/test_network_transaction.cc#newcode19 net/http/test_network_transaction.cc:19: DCHECK_NE(OK, err); On 2014/01/24 02:10:00, rvargas wrote: > On ...
6 years, 11 months ago (2014-01-24 16:18:41 UTC) #17
Randy Smith (Not in Mondays)
Incorporated all comments made so far by Matt and Ricardo. Waiting on comments from Elly, ...
6 years, 11 months ago (2014-01-25 21:11:30 UTC) #18
rvargas (doing something else)
net LGTM
6 years, 11 months ago (2014-01-28 01:37:33 UTC) #19
Randy Smith (Not in Mondays)
John Abd-El Malek, Chris Evans: Ping?
6 years, 10 months ago (2014-01-28 16:29:31 UTC) #20
mmenke
https://codereview.chromium.org/138513002/diff/730001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/730001/chrome/browser/errorpage_browsertest.cc#newcode163 chrome/browser/errorpage_browsertest.cc:163: scoped_ptr<net::FailingHttpTransactionFactory> factory( nit: Can just make this a HttpTransactionFactory, ...
6 years, 10 months ago (2014-01-28 17:27:22 UTC) #21
Randy Smith (Not in Mondays)
Incorporated Matt's comments. Matt, just confirming that you took a look a render_view_browsertest.cc? https://codereview.chromium.org/138513002/diff/730001/chrome/browser/errorpage_browsertest.cc File ...
6 years, 10 months ago (2014-01-28 22:52:58 UTC) #22
mmenke
Your latest patch doesn't look to have been uploaded successfully. I forgot to look at ...
6 years, 10 months ago (2014-01-28 23:10:21 UTC) #23
mmenke
Just nits https://codereview.chromium.org/138513002/diff/770001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/770001/content/renderer/render_view_browsertest.cc#newcode335 content/renderer/render_view_browsertest.cc:335: } Is this function needed? https://codereview.chromium.org/138513002/diff/770001/content/renderer/render_view_browsertest.cc#newcode368 content/renderer/render_view_browsertest.cc:368: ...
6 years, 10 months ago (2014-01-29 16:14:33 UTC) #24
Randy Smith (Not in Mondays)
https://codereview.chromium.org/138513002/diff/730001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/730001/chrome/browser/errorpage_browsertest.cc#newcode426 chrome/browser/errorpage_browsertest.cc:426: EXPECT_TRUE(result); On 2014/01/28 23:10:22, mmenke wrote: > On 2014/01/28 ...
6 years, 10 months ago (2014-01-29 21:14:09 UTC) #25
Randy Smith (Not in Mondays)
Replace Chris (Evans) with Chris (Palmer) for security review.
6 years, 10 months ago (2014-01-29 22:06:37 UTC) #26
Randy Smith (Not in Mondays)
On 2014/01/29 22:06:37, rdsmith wrote: > Replace Chris (Evans) with Chris (Palmer) for security review. ...
6 years, 10 months ago (2014-01-29 22:07:54 UTC) #27
Randy Smith (Not in Mondays)
James (jamesr@): I know you said in the review for https://codereview.chromium.org/138493002 that you weren't the ...
6 years, 10 months ago (2014-01-29 22:17:50 UTC) #28
mmenke
LGTM https://codereview.chromium.org/138513002/diff/770001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/770001/content/renderer/render_view_browsertest.cc#newcode439 content/renderer/render_view_browsertest.cc:439: // need to restore the old state. On ...
6 years, 10 months ago (2014-01-29 22:18:22 UTC) #29
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/138513002/diff/840001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/840001/chrome/browser/errorpage_browsertest.cc#newcode101 chrome/browser/errorpage_browsertest.cc:101: " domAutomationController.send('absent');\n" On 2014/01/29 22:18:24, mmenke wrote: > ...
6 years, 10 months ago (2014-01-29 22:50:44 UTC) #30
jamesr
webkit/ lgtm
6 years, 10 months ago (2014-01-29 22:54:59 UTC) #31
palmer
IPC security LGTM. https://codereview.chromium.org/138513002/diff/840001/content/common/resource_messages.h File content/common/resource_messages.h (right): https://codereview.chromium.org/138513002/diff/840001/content/common/resource_messages.h#newcode224 content/common/resource_messages.h:224: // A copy of the data ...
6 years, 10 months ago (2014-01-29 23:22:46 UTC) #32
jam
https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc#newcode2369 content/renderer/render_view_browsertest.cc:2369: SetContentRendererClient( I think we can avoid the contentbrowsertest changes. ...
6 years, 10 months ago (2014-01-30 18:49:25 UTC) #33
Randy Smith (Not in Mondays)
https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc#newcode2369 content/renderer/render_view_browsertest.cc:2369: SetContentRendererClient( On 2014/01/30 18:49:27, jam wrote: > I think ...
6 years, 10 months ago (2014-01-30 19:10:47 UTC) #34
jam
https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc#newcode2369 content/renderer/render_view_browsertest.cc:2369: SetContentRendererClient( On 2014/01/30 19:10:47, rdsmith wrote: > On 2014/01/30 ...
6 years, 10 months ago (2014-01-30 19:27:16 UTC) #35
jam
6 years, 10 months ago (2014-01-30 19:27:22 UTC) #36
Randy Smith (Not in Mondays)
https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc#newcode2369 content/renderer/render_view_browsertest.cc:2369: SetContentRendererClient( On 2014/01/30 19:27:18, jam wrote: > On 2014/01/30 ...
6 years, 10 months ago (2014-01-30 22:03:46 UTC) #37
Elly Fong-Jones
lgtm
6 years, 10 months ago (2014-01-30 22:37:35 UTC) #38
jam
On 2014/01/30 22:03:46, rdsmith wrote: > https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc > File content/renderer/render_view_browsertest.cc (right): > > https://codereview.chromium.org/138513002/diff/880001/content/renderer/render_view_browsertest.cc#newcode2369 > ...
6 years, 10 months ago (2014-02-03 21:39:08 UTC) #39
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 10 months ago (2014-02-04 19:03:15 UTC) #40
Randy Smith (Not in Mondays)
The CQ bit was unchecked by rdsmith@chromium.org
6 years, 10 months ago (2014-02-04 19:03:22 UTC) #41
Randy Smith (Not in Mondays)
Thanks, all! https://codereview.chromium.org/138513002/diff/840001/content/common/resource_messages.h File content/common/resource_messages.h (right): https://codereview.chromium.org/138513002/diff/840001/content/common/resource_messages.h#newcode224 content/common/resource_messages.h:224: // A copy of the data requested ...
6 years, 10 months ago (2014-02-04 19:59:52 UTC) #42
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 10 months ago (2014-02-04 20:00:30 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/138513002/1010001
6 years, 10 months ago (2014-02-04 20:13:49 UTC) #44
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=256900
6 years, 10 months ago (2014-02-04 20:53:56 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/138513002/1010001
6 years, 10 months ago (2014-02-04 20:59:21 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/138513002/1010001
6 years, 10 months ago (2014-02-05 00:57:29 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-05 05:19:46 UTC) #48
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=257360
6 years, 10 months ago (2014-02-05 05:19:47 UTC) #49
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 10 months ago (2014-02-05 17:53:59 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/138513002/1010001
6 years, 10 months ago (2014-02-05 17:59:27 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-05 21:40:08 UTC) #52
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=258029
6 years, 10 months ago (2014-02-05 21:40:09 UTC) #53
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 10 months ago (2014-02-06 22:17:58 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/138513002/1010001
6 years, 10 months ago (2014-02-06 22:20:06 UTC) #55
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 23:08:40 UTC) #56
Message was sent while issue was closed.
Change committed as 249527

Powered by Google App Engine
This is Rietveld 408576698