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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed)

Created:
6 years, 5 months ago by davidben
Modified:
6 years, 4 months ago
CC:
chromium-reviews, asanka, qsr+mojo_chromium.org, tzik, tburkard+watch_chromium.org, yzshen+watch_chromium.org, ben+mojo_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, benjhayden+dwatch_chromium.org, viettrungluu+watch_chromium.org, jam, abarth-chromium, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, michaeln, jsbell+serviceworker_chromium.org, nhiroki, gavinp+prer_chromium.org, alecflett+watch_chromium.org, davidben+watch_chromium.org, serviceworker-reviews, Aaron Boodman, dominich+watch_chromium.org, kinuko+serviceworker, horo+watch_chromium.org, darin (slow to review), kinuko+fileapi
Project:
chromium
Visibility:
Public.

Description

Plumb redirect info out of net, through content, and into child processes. This saves the logic in PluginURLFetcher and WebURLLoader that has to replicate the method-munging, referrer-munging, and first-party-URL-munging logic that is already done in net/. BUG=384609 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290005

Patch Set 1 #

Patch Set 2 : Dead code. #

Patch Set 3 : Add a TODO #

Total comments: 24

Patch Set 4 : mmenke comments #

Total comments: 5

Patch Set 5 : unnecessary include #

Total comments: 1

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase and fix mismerge #

Patch Set 9 : Revise comment #

Total comments: 2

Patch Set 10 : darin comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -305 lines) Patch
M chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/security_filter_peer.h View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/renderer/security_filter_peer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M components/navigation_interception/intercept_navigation_resource_throttle.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_update_job.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/appcache/appcache_update_job.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/download/download_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M content/browser/download/save_file_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/save_file_resource_handler.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/loader/async_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -6 lines 0 comments Download
M content/browser/loader/certificate_resource_handler.h View 1 2 3 4 3 chunks +1 line, -3 lines 0 comments Download
M content/browser/loader/certificate_resource_handler.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -7 lines 0 comments Download
M content/browser/loader/detachable_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/detachable_resource_handler.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M content/browser/loader/layered_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/layered_resource_handler.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/loader/resource_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -6 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/stream_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/stream_resource_handler.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/loader/sync_resource_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/sync_resource_handler.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/loader/throttling_resource_handler.h View 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/throttling_resource_handler.cc View 1 2 3 4 5 6 3 chunks +10 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/child/npapi/plugin_url_fetcher.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.cc View 1 2 3 4 5 6 4 chunks +9 lines, -25 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -5 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -24 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -3 lines 0 comments Download
M content/public/child/request_peer.h View 2 chunks +8 lines, -6 lines 0 comments Download
M mojo/services/network/url_loader_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/network/url_loader_impl.cc View 1 2 3 4 5 6 3 chunks +4 lines, -5 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
A net/url_request/redirect_info.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A + net/url_request/redirect_info.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/url_request.h View 8 chunks +29 lines, -9 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 8 chunks +27 lines, -19 lines 0 comments Download
M net/url_request/url_request_job.h View 4 chunks +7 lines, -3 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 3 6 chunks +62 lines, -31 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 29 chunks +96 lines, -51 lines 0 comments Download
M net/websockets/websocket_stream.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M webkit/browser/fileapi/file_writer_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/browser/fileapi/file_writer_delegate.cc View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
davidben
Monster CL time. Matt, this is the thing we were talking about a month ago. ...
6 years, 5 months ago (2014-07-16 21:12:18 UTC) #1
mmenke
https://codereview.chromium.org/398903002/diff/40001/chrome/renderer/security_filter_peer.h File chrome/renderer/security_filter_peer.h (right): https://codereview.chromium.org/398903002/diff/40001/chrome/renderer/security_filter_peer.h#newcode17 chrome/renderer/security_filter_peer.h:17: // NOTE: subclasses should insure they delete themselves at ...
6 years, 5 months ago (2014-07-17 16:55:10 UTC) #2
davidben
https://codereview.chromium.org/398903002/diff/40001/chrome/renderer/security_filter_peer.h File chrome/renderer/security_filter_peer.h (right): https://codereview.chromium.org/398903002/diff/40001/chrome/renderer/security_filter_peer.h#newcode17 chrome/renderer/security_filter_peer.h:17: // NOTE: subclasses should insure they delete themselves at ...
6 years, 5 months ago (2014-07-17 22:03:56 UTC) #3
mmenke
LGTM https://codereview.chromium.org/398903002/diff/60001/content/browser/loader/certificate_resource_handler.h File content/browser/loader/certificate_resource_handler.h (right): https://codereview.chromium.org/398903002/diff/60001/content/browser/loader/certificate_resource_handler.h#newcode17 content/browser/loader/certificate_resource_handler.h:17: #include "url/gurl.h" Since you're getting rid of url_, ...
6 years, 5 months ago (2014-07-18 15:18:36 UTC) #4
davidben
+darin, nasko for everything and IPC OWNERS, respectively, and probably some amount of review. Most ...
6 years, 5 months ago (2014-07-18 16:14:58 UTC) #5
nasko
LGTM
6 years, 5 months ago (2014-07-24 11:57:48 UTC) #6
davidben
https://codereview.chromium.org/398903002/diff/80001/net/url_request/redirect_info.h File net/url_request/redirect_info.h (right): https://codereview.chromium.org/398903002/diff/80001/net/url_request/redirect_info.h#newcode25 net/url_request/redirect_info.h:25: // always fake a set of headers? mmenke is ...
6 years, 5 months ago (2014-07-25 19:19:05 UTC) #7
davidben
darin: friendly ping (Copying summary from previous comment for convenience: Most of this is mechanical; ...
6 years, 4 months ago (2014-08-01 21:23:28 UTC) #8
darin (slow to review)
LGTM https://codereview.chromium.org/398903002/diff/160001/content/browser/loader/resource_handler.h File content/browser/loader/resource_handler.h (right): https://codereview.chromium.org/398903002/diff/160001/content/browser/loader/resource_handler.h#newcode26 content/browser/loader/resource_handler.h:26: struct RedirectInfo; nit: list "struct" after "class"?
6 years, 4 months ago (2014-08-14 23:54:21 UTC) #9
davidben
https://codereview.chromium.org/398903002/diff/160001/content/browser/loader/resource_handler.h File content/browser/loader/resource_handler.h (right): https://codereview.chromium.org/398903002/diff/160001/content/browser/loader/resource_handler.h#newcode26 content/browser/loader/resource_handler.h:26: struct RedirectInfo; On 2014/08/14 23:54:21, darin wrote: > nit: ...
6 years, 4 months ago (2014-08-15 17:12:15 UTC) #10
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 4 months ago (2014-08-15 17:18:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/398903002/180001
6 years, 4 months ago (2014-08-15 17:19:47 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 20:50:06 UTC) #13
Message was sent while issue was closed.
Committed patchset #10 (180001) as 290005

Powered by Google App Engine
This is Rietveld 408576698