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

Issue 407093011: Allow URLRequests from one context to have different NetworkDelegates. (Closed)

Created:
6 years, 5 months ago by mmenke
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Project:
chromium
Visibility:
Public.

Description

Allow URLRequests from one context to have different NetworkDelegates. This is a prerequisite to allowing a URLRequestJob to transparently wrap a URLRequest, so AppCache can override the response for failing and redirected requests without the NetworkDelegate or URLRequest::Delegate being aware of the underlying request. Also consolidate the URLRequest constructors, and make most code create URLRequests through the URLRequestContext's CreateRequest function, rather than through its constructor. TBR=battre@chromium.org BUG=161547 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291090

Patch Set 1 #

Patch Set 2 : Missed a couple calls places, replace cookie store with NULL, inline Init() #

Patch Set 3 : Fix more stuff #

Patch Set 4 : And fix more stuff... #

Total comments: 18

Patch Set 5 : Response to comments #

Patch Set 6 : rebase #

Patch Set 7 : Response to comments #

Patch Set 8 : Fix merge #

Patch Set 9 : Add back accidentally removed change #

Patch Set 10 : merge #

Patch Set 11 : Fix prerender #

Patch Set 12 : Fix mojo #

Total comments: 2

Patch Set 13 : rebase #

Patch Set 14 : Fix merge conflicts #

Patch Set 15 : merge #

Patch Set 16 : Fix new tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1842 lines, -1963 lines) Patch
M chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +89 lines, -77 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 3 24 chunks +71 lines, -69 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc View 1 2 3 chunks +5 lines, -18 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/search/iframe_source_unittest.cc View 1 2 3 4 5 3 chunks +21 lines, -20 lines 0 comments Download
M cloud_print/service/service_state.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +28 lines, -27 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +8 lines, -6 lines 0 comments Download
M components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc View 1 2 3 4 5 3 chunks +10 lines, -9 lines 0 comments Download
M content/browser/appcache/appcache_request_handler_unittest.cc View 1 2 3 4 5 22 chunks +39 lines, -31 lines 0 comments Download
M content/browser/appcache/appcache_url_request_job_unittest.cc View 1 2 3 5 chunks +13 lines, -11 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 2 chunks +13 lines, -10 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -4 lines 0 comments Download
M extensions/browser/extension_protocols_unittest.cc View 1 2 3 4 5 5 chunks +74 lines, -57 lines 0 comments Download
M mojo/services/network/url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -6 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +13 lines, -16 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +23 lines, -19 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -18 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +35 lines, -55 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_context_builder_unittest.cc View 1 3 chunks +16 lines, -13 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 1 2 3 12 chunks +82 lines, -93 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_simple_job_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_entry.h View 2 chunks +4 lines, -1 line 0 comments Download
M net/url_request/url_request_throttler_entry.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_throttler_entry_interface.h View 2 chunks +4 lines, -1 line 0 comments Download
M net/url_request/url_request_throttler_simulation_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 9 chunks +56 lines, -47 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 215 chunks +1148 lines, -1296 lines 0 comments Download
M net/websockets/websocket_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 33 (3 generated)
mmenke
I hadn't realized this would be quite so huge... The relevant changes are in in ...
6 years, 5 months ago (2014-07-24 16:24:41 UTC) #1
pauljensen
I'd suggest rewording "Allow different URLRequests to have different NetworkDelegates." as I believe if you ...
6 years, 4 months ago (2014-07-31 15:38:17 UTC) #2
mmenke
Thanks for the feedback, and for making it through the review! Sure it was as ...
6 years, 4 months ago (2014-07-31 16:03:15 UTC) #3
pauljensen
What did you think of my commit message comment? https://codereview.chromium.org/407093011/diff/220001/net/url_request/url_request_throttler_simulation_unittest.cc File net/url_request/url_request_throttler_simulation_unittest.cc (right): https://codereview.chromium.org/407093011/diff/220001/net/url_request/url_request_throttler_simulation_unittest.cc#newcode279 net/url_request/url_request_throttler_simulation_unittest.cc:279: ...
6 years, 4 months ago (2014-07-31 16:25:51 UTC) #4
mmenke
Updated the description as well (Noticed your comment about it earlier, but then forgot to ...
6 years, 4 months ago (2014-07-31 19:02:12 UTC) #5
pauljensen
lgtm. You can't think of any cases where a URLRequestContext implementation might be inherently tied ...
6 years, 4 months ago (2014-07-31 19:13:41 UTC) #6
mmenke
On 2014/07/31 19:13:41, pauljensen wrote: > lgtm. You can't think of any cases where a ...
6 years, 4 months ago (2014-07-31 19:38:27 UTC) #7
pauljensen
Agreed.
6 years, 4 months ago (2014-07-31 19:39:49 UTC) #8
mmenke
On 2014/07/31 19:38:27, mmenke wrote: > On 2014/07/31 19:13:41, pauljensen wrote: > > lgtm. You ...
6 years, 4 months ago (2014-07-31 19:40:05 UTC) #9
mmenke
This is a largely mechanical change, replacing all "new URLRequest(blah, blah2, blah3, context)" calls with ...
6 years, 4 months ago (2014-08-05 21:53:36 UTC) #10
Scott Byer
LGTM for cloud print. On 2014/08/05 21:53:36, mmenke wrote: > This is a largely mechanical ...
6 years, 4 months ago (2014-08-05 21:58:34 UTC) #11
bengr
lgtm for data_reduction_proxy
6 years, 4 months ago (2014-08-05 22:08:02 UTC) #12
Yoyo Zhou
extensions LGTM
6 years, 4 months ago (2014-08-05 22:14:34 UTC) #13
willchan no longer on Chromium
Drive-by https://codereview.chromium.org/407093011/diff/440001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/407093011/diff/440001/net/url_request/url_request.h#newcode270 net/url_request/url_request.h:270: // from the URLRequestContext. Is it possible to ...
6 years, 4 months ago (2014-08-05 22:36:43 UTC) #14
mmenke
https://codereview.chromium.org/407093011/diff/440001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/407093011/diff/440001/net/url_request/url_request.h#newcode270 net/url_request/url_request.h:270: // from the URLRequestContext. On 2014/08/05 22:36:43, willchan wrote: ...
6 years, 4 months ago (2014-08-05 22:42:34 UTC) #15
michaeln
lgtm for content/browser/appcache/ qq: What does "allowing a URLRequestJob to transparently wrap a URLRequest" mean? ...
6 years, 4 months ago (2014-08-05 22:56:16 UTC) #16
mmenke
On 2014/08/05 22:56:16, michaeln wrote: > lgtm for content/browser/appcache/ > > qq: What does "allowing ...
6 years, 4 months ago (2014-08-05 23:00:37 UTC) #17
mmenke
On 2014/08/05 23:00:37, mmenke wrote: > On 2014/08/05 22:56:16, michaeln wrote: > > lgtm for ...
6 years, 4 months ago (2014-08-05 23:03:16 UTC) #18
mkosiba (inactive)
components/navigation_interception/ LGTM
6 years, 4 months ago (2014-08-06 10:37:06 UTC) #19
mmenke
jhawkins: Ping! Please review chrome/browser/ (Except net/ and prerender/) darin: Ping! Please review mojo/services/network/url_loader_impl.cc This ...
6 years, 4 months ago (2014-08-15 18:31:04 UTC) #20
mmenke
This is a largely mechanical change, replacing all "new URLRequest(blah, blah2, blah3, context)" calls with ...
6 years, 4 months ago (2014-08-19 15:02:43 UTC) #21
sky
Said files LGTM
6 years, 4 months ago (2014-08-19 16:52:26 UTC) #22
hashimoto
chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc lgtm
6 years, 4 months ago (2014-08-20 01:29:47 UTC) #23
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 4 months ago (2014-08-21 14:05:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/407093011/520001
6 years, 4 months ago (2014-08-21 14:06:51 UTC) #25
commit-bot: I haz the power
Committed patchset #16 (520001) as 291090
6 years, 4 months ago (2014-08-21 16:32:30 UTC) #26
milnerfamily007
6 years, 2 months ago (2014-09-30 15:16:25 UTC) #28
milnerfamily007
lgtm
6 years, 2 months ago (2014-09-30 15:18:42 UTC) #30
lucyrodz07
3 years, 11 months ago (2016-12-31 17:40:53 UTC) #32
lucyrodz07
3 years, 11 months ago (2016-12-31 17:40:55 UTC) #33
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698