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

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed)

Created:
5 years, 4 months ago by mmenke
Modified:
5 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove reference counting from HttpNetworkSession. This makes lifetime cleaner, and helps us avoid the case where an HttpNetworkSession outlives the components it points to. Also remove some weird uses a null NetLog in GCM. TBR=sgurun@chromium.org,davidben@chromium.org,droger@chromium.org BUG=515947 Committed: https://crrev.com/468be2ff331c13b1a081d10a3c17e5366d26e577 Cr-Commit-Position: refs/heads/master@{#348483}

Patch Set 1 #

Patch Set 2 : Merge, fixes #

Patch Set 3 : Add scary comment #

Total comments: 6

Patch Set 4 : Remove NetLog from gcm #

Patch Set 5 : Merge #

Patch Set 6 : Remove more BoundNetLog stuff #

Patch Set 7 : Removed too much, back up a bit #

Total comments: 50

Patch Set 8 : Response to Paul's comments #

Patch Set 9 : Missed two comments, fix some tests #

Total comments: 14

Patch Set 10 : Response to comments #

Patch Set 11 : Merge #

Patch Set 12 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -746 lines) Patch
M android_webview/browser/net/aw_url_request_context_getter.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -9 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunSignInProcessor.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -236 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -7 lines 0 comments Download
M components/gcm_driver/gcm_client.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 2 3 3 chunks +4 lines, -6 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 5 6 3 chunks +5 lines, -7 lines 0 comments Download
M components/gcm_driver/gcm_client_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -6 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.h View 1 4 5 6 2 chunks +8 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 2 3 4 5 6 6 chunks +8 lines, -7 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M ios/crnet/crnet_environment.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -1 line 0 comments Download
M ios/web/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M jingle/glue/proxy_resolving_client_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M jingle/glue/proxy_resolving_client_socket.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/cert_net/cert_net_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -6 lines 0 comments Download
M net/http/http_cache.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -7 lines 0 comments Download
M net/http/http_cache.cc View 2 chunks +10 lines, -28 lines 0 comments Download
M net/http/http_network_layer.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M net/http/http_network_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -8 lines 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_network_session.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -5 lines 0 comments Download
M net/http/http_network_session_peer.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_network_session_peer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_network_transaction_ssl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 182 chunks +195 lines, -195 lines 0 comments Download
M net/http/http_proxy_client_socket_pool_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 21 chunks +28 lines, -30 lines 0 comments Download
M net/http/mock_http_cache.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -6 lines 0 comments Download
M net/quic/quic_end_to_end_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 22 chunks +44 lines, -47 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -5 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 2 3 4 5 6 7 8 11 chunks +13 lines, -15 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +8 lines, -8 lines 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -5 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +18 lines, -15 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -7 lines 0 comments Download
M net/url_request/url_request_context_storage.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 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 1 chunk +5 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -4 lines 0 comments Download
M net/url_request/view_cache_helper_unittest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1298253002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1298253002/40001
5 years, 4 months ago (2015-08-20 16:18:13 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/52694) linux_chromium_compile_dbg_32_ng on ...
5 years, 4 months ago (2015-08-20 16:21:03 UTC) #4
mmenke
Paul: Please review everything: Zea: Please review google_apis/gcm and components/gcm_driver https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client.h File components/gcm_driver/gcm_client.h (right): https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client.h#newcode221 ...
5 years, 3 months ago (2015-08-31 15:55:57 UTC) #18
Nicolas Zea
GCM mostly LG https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client.h File components/gcm_driver/gcm_client.h (right): https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client.h#newcode221 components/gcm_driver/gcm_client.h:221: // deleted before the Getter's underlying ...
5 years, 3 months ago (2015-08-31 19:43:28 UTC) #19
mmenke
https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc#newcode490 components/gcm_driver/gcm_client_impl.cc:490: nullptr, On 2015/08/31 19:43:28, Nicolas Zea wrote: > Did ...
5 years, 3 months ago (2015-08-31 19:48:51 UTC) #20
mmenke
On 2015/08/31 19:48:51, mmenke wrote: > https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc > File components/gcm_driver/gcm_client_impl.cc (right): > > https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc#newcode490 > ...
5 years, 3 months ago (2015-08-31 20:13:10 UTC) #21
Nicolas Zea
GCM LGTM https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc#newcode490 components/gcm_driver/gcm_client_impl.cc:490: nullptr, On 2015/08/31 19:48:51, mmenke wrote: > ...
5 years, 3 months ago (2015-08-31 22:26:50 UTC) #22
mmenke
https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/1298253002/diff/260001/components/gcm_driver/gcm_client_impl.cc#newcode490 components/gcm_driver/gcm_client_impl.cc:490: nullptr, On 2015/08/31 22:26:49, Nicolas Zea wrote: > On ...
5 years, 3 months ago (2015-09-01 17:20:52 UTC) #23
pauljensen
https://codereview.chromium.org/1298253002/diff/330001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/1298253002/diff/330001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode186 android_webview/browser/net/aw_url_request_context_getter.cc:186: cookie_store_(cookie_store) { while we're reordering initialization here, can we ...
5 years, 3 months ago (2015-09-02 14:32:30 UTC) #24
mmenke
Paul: Thanks for taking the time to carefully review the CL! Know these huge refactors ...
5 years, 3 months ago (2015-09-02 16:29:34 UTC) #26
mmenke
Paul: Ping!
5 years, 3 months ago (2015-09-09 18:14:32 UTC) #27
pauljensen
Net bug triage Thurs, Fri. Vacation Mon. Build sheriff Tues, Wed. So I may get ...
5 years, 3 months ago (2015-09-09 18:23:36 UTC) #28
mmenke
On 2015/09/09 18:23:36, pauljensen wrote: > Net bug triage Thurs, Fri. Vacation Mon. Build sheriff ...
5 years, 3 months ago (2015-09-09 18:25:28 UTC) #29
pauljensen
lgtm with what amount to nits https://codereview.chromium.org/1298253002/diff/390001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/1298253002/diff/390001/chrome/browser/profiles/profile_impl_io_data.cc#newcode545 chrome/browser/profiles/profile_impl_io_data.cc:545: http_network_session_ = CreateHttpNetworkSession(*profile_params); ...
5 years, 3 months ago (2015-09-11 13:05:25 UTC) #30
mmenke
Thanks for the review! I'll plan to TBR the other owners. https://codereview.chromium.org/1298253002/diff/390001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): ...
5 years, 3 months ago (2015-09-11 14:46:50 UTC) #31
pauljensen
lgtm
5 years, 3 months ago (2015-09-11 14:47:56 UTC) #32
mmenke
TBRing other OWNERs (This is an API change, refcounted to non-refcounted - remaining changes are ...
5 years, 3 months ago (2015-09-11 14:55:05 UTC) #34
droger
//ios LGTM
5 years, 3 months ago (2015-09-11 15:13:07 UTC) #35
davidben
content/shell/browser lgtm
5 years, 3 months ago (2015-09-11 15:34:36 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1298253002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1298253002/430001
5 years, 3 months ago (2015-09-11 20:34:58 UTC) #41
commit-bot: I haz the power
Committed patchset #11 (id:430001)
5 years, 3 months ago (2015-09-11 20:42:37 UTC) #42
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/468be2ff331c13b1a081d10a3c17e5366d26e577 Cr-Commit-Position: refs/heads/master@{#348483}
5 years, 3 months ago (2015-09-11 20:43:24 UTC) #43
mmenke
On 2015/09/11 20:43:24, commit-bot: I haz the power wrote: > Patchset 11 (id:??) landed as ...
5 years, 3 months ago (2015-09-12 02:00:03 UTC) #44
mmenke
A revert of this CL (patchset #11 id:430001) has been created in https://codereview.chromium.org/1342613002/ by mmenke@chromium.org. ...
5 years, 3 months ago (2015-09-12 02:03:06 UTC) #45
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:26:13 UTC) #46
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/468be2ff331c13b1a081d10a3c17e5366d26e577
Cr-Commit-Position: refs/heads/master@{#348483}

Powered by Google App Engine
This is Rietveld 408576698