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

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed)

Created:
7 years, 1 month ago by akalin
Modified:
7 years, 1 month ago
CC:
chromium-reviews, asanka, skanuj+watch_chromium.org, tzik, shishir+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, stuartmorgan+watch_chromium.org, joi+watch-content_chromium.org, kinuko+watch, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, melevin+watch_chromium.org, benjhayden+dwatch_chromium.org, jam, dominich, tburkard+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, gavinp+prer_chromium.org, jfweitz+watch_chromium.org, Jered, zork+watch_chromium.org, michaeln, donnd+watch_chromium.org, dominich+watch_chromium.org, David Black, samarth+watch_chromium.org, Paweł Hajdan Jr., kmadhusu+watch_chromium.org
Visibility:
Public.

Description

[Net] Add a priority parameter to URLRequest's constructor This is so that it is clearer what the intended initial priority of a URLRequest is. It is also needed so that we can later enforce that if a URLRequest is set to ignore limits, it has MAXIMUM_PRIORITY; otherwise, we'd have to mandate that SetPriority() is called before set_load_flags(), which is fiddly. Also standardize on a single URLRequest constructor. BUG=166689 R=jam@chromium.org, jamesr@chromium.org, joth@chromium.org, mmenke@chromium.org, scottbyer@chromium.org, sky@chromium.org, tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232219

Patch Set 1 #

Patch Set 2 : Fix test failures #

Patch Set 3 : Fix more tests #

Patch Set 4 : Fix more tests #

Patch Set 5 : Fix compile errors #

Patch Set 6 : Fix more compile errors #

Patch Set 7 : Rebase #

Patch Set 8 : Fix compile error from rebase #

Total comments: 16

Patch Set 9 : Fix clang-format mangling #

Total comments: 2

Patch Set 10 : self-review #

Patch Set 11 : Fix compile failures #

Total comments: 4

Patch Set 12 : Address comments #

Patch Set 13 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1058 lines, -690 lines) Patch
M android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 12 chunks +43 lines, -31 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_action_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_permissions_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_protocols_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_installer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetcher.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/search/iframe_source_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_client_certificate_selector_test.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_client_certificate_selector_test.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -9 lines 0 comments Download
M chrome_frame/test/test_server_test.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
M cloud_print/service/service_state.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/fileapi/blob_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/fileapi/file_system_dir_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/fileapi/file_system_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/fileapi/file_writer_delegate_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -5 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/streams/stream_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -6 lines 0 comments Download
M net/test/spawned_test_server/spawner_communicator.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -3 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -7 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -39 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M net/url_request/url_request_context_builder_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -4 lines 0 comments Download
M net/url_request/url_request_filter_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +31 lines, -29 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M net/url_request/url_request_job_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M net/url_request/url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +50 lines, -41 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M net/url_request/url_request_throttler_simulation_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 181 chunks +490 lines, -247 lines 0 comments Download
M webkit/browser/appcache/appcache_request_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 37 chunks +98 lines, -96 lines 0 comments Download
M webkit/browser/appcache/appcache_storage_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M webkit/browser/appcache/appcache_update_job.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -5 lines 0 comments Download
M webkit/browser/appcache/appcache_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +17 lines, -10 lines 0 comments Download
M webkit/browser/blob/blob_url_request_job_factory.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M webkit/browser/blob/blob_url_request_job_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
akalin
(Note that I auto-formatted with 'git cl format') +mmenke for overall review and net/ OWNERS ...
7 years, 1 month ago (2013-10-30 01:44:27 UTC) #1
jamesr
Could you please pick a primary reviewer for the API change and then once they've ...
7 years, 1 month ago (2013-10-30 01:46:05 UTC) #2
akalin
On 2013/10/30 01:46:05, jamesr wrote: > Could you please pick a primary reviewer for the ...
7 years, 1 month ago (2013-10-30 01:48:55 UTC) #3
akalin
+tommi for chrome_frame/ OWNERS
7 years, 1 month ago (2013-10-30 03:34:08 UTC) #4
tommi (sloooow) - chröme
On 2013/10/30 03:34:08, akalin wrote: > +tommi for chrome_frame/ OWNERS lgtm
7 years, 1 month ago (2013-10-30 10:27:37 UTC) #5
sky
LGTM
7 years, 1 month ago (2013-10-30 15:09:31 UTC) #6
mmenke
LGTM, just nits. https://codereview.chromium.org/51953002/diff/220004/chrome/browser/extensions/extension_protocols_unittest.cc File chrome/browser/extensions/extension_protocols_unittest.cc (right): https://codereview.chromium.org/51953002/diff/220004/chrome/browser/extensions/extension_protocols_unittest.cc#newcode177 chrome/browser/extensions/extension_protocols_unittest.cc:177: NULL); I don't think we should ...
7 years, 1 month ago (2013-10-30 15:27:10 UTC) #7
Scott Byer
cloud print LGTM
7 years, 1 month ago (2013-10-30 16:03:12 UTC) #8
jam
lgtm
7 years, 1 month ago (2013-10-30 18:12:22 UTC) #9
akalin
Addressed all comments, added more usage of scoped_ptr https://codereview.chromium.org/51953002/diff/220004/chrome/browser/extensions/extension_protocols_unittest.cc File chrome/browser/extensions/extension_protocols_unittest.cc (right): https://codereview.chromium.org/51953002/diff/220004/chrome/browser/extensions/extension_protocols_unittest.cc#newcode177 chrome/browser/extensions/extension_protocols_unittest.cc:177: NULL); ...
7 years, 1 month ago (2013-10-30 21:44:36 UTC) #10
joth
a_w/ lgtm https://codereview.chromium.org/51953002/diff/90059/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc File android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc (right): https://codereview.chromium.org/51953002/diff/90059/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc#newcode22 android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc:22: using net::DEFAULT_PRIORITY; nit: this seems excessive given ...
7 years, 1 month ago (2013-10-30 21:48:48 UTC) #11
akalin
https://codereview.chromium.org/51953002/diff/90059/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc File android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc (right): https://codereview.chromium.org/51953002/diff/90059/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc#newcode22 android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc:22: using net::DEFAULT_PRIORITY; On 2013/10/30 21:48:49, joth wrote: > nit: ...
7 years, 1 month ago (2013-10-30 23:25:58 UTC) #12
mmenke
LGTM https://codereview.chromium.org/51953002/diff/1040001/net/proxy/proxy_script_fetcher_impl.cc File net/proxy/proxy_script_fetcher_impl.cc (right): https://codereview.chromium.org/51953002/diff/1040001/net/proxy/proxy_script_fetcher_impl.cc#newcode137 net/proxy/proxy_script_fetcher_impl.cc:137: url_request_context_->CreateRequest(url, DEFAULT_PRIORITY, this); include request_priority.h? https://codereview.chromium.org/51953002/diff/1040001/net/url_request/url_request_job_unittest.cc File net/url_request/url_request_job_unittest.cc ...
7 years, 1 month ago (2013-10-31 15:23:42 UTC) #13
akalin
Comments addressed, committing soon https://codereview.chromium.org/51953002/diff/1040001/net/proxy/proxy_script_fetcher_impl.cc File net/proxy/proxy_script_fetcher_impl.cc (right): https://codereview.chromium.org/51953002/diff/1040001/net/proxy/proxy_script_fetcher_impl.cc#newcode137 net/proxy/proxy_script_fetcher_impl.cc:137: url_request_context_->CreateRequest(url, DEFAULT_PRIORITY, this); On 2013/10/31 ...
7 years, 1 month ago (2013-10-31 20:02:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/51953002/1180001
7 years, 1 month ago (2013-10-31 20:21:12 UTC) #15
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=33768
7 years, 1 month ago (2013-10-31 21:09:28 UTC) #16
jamesr
webkit/ lgtm
7 years, 1 month ago (2013-10-31 22:00:44 UTC) #17
akalin
7 years, 1 month ago (2013-10-31 22:05:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #13 manually as r232219 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698