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

Issue 501163002: Make URLRequest's constructor private, and make URLRequestContext a friend class. (Closed)

Created:
6 years, 4 months ago by mmenke
Modified:
6 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make URLRequest's constructor private, and make URLRequestContext a friend class. This will hopefully make it easier to refactor URLRequest construction behind the scenes. Also get rid of TestURLRequest, which serves no purpose. TBR=waffles@chromium.org BUG=407306 Committed: https://crrev.com/19378d2ee458f4ef60cf80cbe1cb81db22bdabde Cr-Commit-Position: refs/heads/master@{#293847}

Patch Set 1 #

Patch Set 2 : Fix tests #

Patch Set 3 : merge #

Patch Set 4 : Fix more tests! #

Patch Set 5 : merge #

Patch Set 6 : Fix android #

Patch Set 7 : Minor cleanup #

Patch Set 8 : Merge? #

Total comments: 5

Patch Set 9 : Remove bonus 'be' #

Patch Set 10 : Merge #

Patch Set 11 : merge #

Patch Set 12 : Merge yet again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -470 lines) Patch
M android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.cc View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_action_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 27 chunks +107 lines, -86 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 10 11 10 chunks +36 lines, -34 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 10 11 10 chunks +30 lines, -23 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 9 4 chunks +30 lines, -30 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 3 9 chunks +18 lines, -16 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 3 3 chunks +16 lines, -16 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc View 1 2 2 chunks +15 lines, -13 lines 0 comments Download
M components/policy/core/common/cloud/policy_header_io_helper_unittest.cc View 1 2 chunks +18 lines, -16 lines 0 comments Download
M components/policy/core/common/cloud/policy_header_service_unittest.cc View 1 2 3 chunks +10 lines, -8 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -12 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 3 chunks +52 lines, -52 lines 0 comments Download
M net/url_request/url_request_file_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 chunks +23 lines, -20 lines 0 comments Download
M net/url_request/url_request_filter_unittest.cc View 1 2 3 4 4 chunks +20 lines, -20 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 6 chunks +10 lines, -9 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 1 2 3 4 5 6 11 chunks +38 lines, -27 lines 0 comments Download
M net/url_request/url_request_job_factory_impl_unittest.cc View 3 chunks +11 lines, -10 lines 0 comments Download
M net/url_request/url_request_job_unittest.cc View 6 chunks +22 lines, -20 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 chunk +0 lines, -11 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M net/url_request/url_request_throttler_simulation_unittest.cc View 4 chunks +6 lines, -3 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 12 chunks +22 lines, -19 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 37 (9 generated)
mmenke
Patchset #5 (id:80001) has been deleted
6 years, 3 months ago (2014-08-27 21:33:48 UTC) #1
mmenke
Patchset #4 (id:60001) has been deleted
6 years, 3 months ago (2014-08-27 21:33:56 UTC) #2
mmenke
Patchset #2 (id:20001) has been deleted
6 years, 3 months ago (2014-08-27 21:34:03 UTC) #3
mmenke
Patchset #6 (id:160001) has been deleted
6 years, 3 months ago (2014-08-28 14:46:08 UTC) #4
mmenke
mmenke@chromium.org changed reviewers: + pauljensen@chromium.org
6 years, 3 months ago (2014-08-28 14:46:46 UTC) #5
mmenke
pauljensen: PTAL
6 years, 3 months ago (2014-08-28 14:46:46 UTC) #6
pauljensen
Unifying all URLRequest construction is nice. Adding a friend class is fine in this case. ...
6 years, 3 months ago (2014-08-28 15:48:39 UTC) #7
mmenke
Thanks! On 2014/08/28 15:48:39, pauljensen wrote: > Unifying all URLRequest construction is nice. Adding a ...
6 years, 3 months ago (2014-08-28 16:46:00 UTC) #8
pauljensen
LGTM
6 years, 3 months ago (2014-08-28 16:53:18 UTC) #9
mmenke
mmenke@chromium.org changed reviewers: + atwilson@chromium.org, battre@chromium.org, bengr@chromium.org, mkosiba@chromium.org, rdevlin.cronin@chromium.org
6 years, 3 months ago (2014-08-28 17:01:07 UTC) #10
mmenke
This is just a refactoring to get rid of TestURLRequest (Which basically adds nothing to ...
6 years, 3 months ago (2014-08-28 17:01:07 UTC) #11
Devlin
On 2014/08/28 17:01:07, mmenke wrote: > This is just a refactoring to get rid of ...
6 years, 3 months ago (2014-08-28 23:50:33 UTC) #12
battre
browser/extensions/api LGTM
6 years, 3 months ago (2014-08-29 07:43:02 UTC) #13
Andrew T Wilson (Slow)
policy lgtm
6 years, 3 months ago (2014-08-29 08:02:21 UTC) #14
mkosiba (inactive)
android_webview LGTM
6 years, 3 months ago (2014-09-01 08:58:15 UTC) #15
mmenke
bengr: Ping!
6 years, 3 months ago (2014-09-03 15:31:19 UTC) #16
bengr
lgtm
6 years, 3 months ago (2014-09-05 20:31:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/501163002/240001
6 years, 3 months ago (2014-09-05 20:46:59 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/52361) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/12707) ios_rel_device ...
6 years, 3 months ago (2014-09-05 21:10:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/501163002/260001
6 years, 3 months ago (2014-09-08 20:02:10 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/9435)
6 years, 3 months ago (2014-09-08 20:12:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/501163002/260001
6 years, 3 months ago (2014-09-09 00:34:10 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/9451) ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/8745)
6 years, 3 months ago (2014-09-09 00:49:36 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/501163002/280001
6 years, 3 months ago (2014-09-09 01:09:38 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/64143) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/53116) win_gpu ...
6 years, 3 months ago (2014-09-09 01:20:32 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/501163002/300001
6 years, 3 months ago (2014-09-09 02:55:17 UTC) #35
commit-bot: I haz the power
Committed patchset #12 (id:300001) as 513ff525455cb771a1bfb289a163e7a096acfd2b
6 years, 3 months ago (2014-09-09 04:29:18 UTC) #36
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:50:19 UTC) #37
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/19378d2ee458f4ef60cf80cbe1cb81db22bdabde
Cr-Commit-Position: refs/heads/master@{#293847}

Powered by Google App Engine
This is Rietveld 408576698