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

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed)

Created:
8 years ago by Joao da Silva
Modified:
8 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. BUG=164363 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173227

Patch Set 1 #

Total comments: 16

Patch Set 2 : Rebased, post first try if online, more tests #

Total comments: 28

Patch Set 3 : rebase #

Patch Set 4 : addressed comments #

Total comments: 7

Patch Set 5 : swap test order, renamed methods #

Patch Set 6 : Flush -> FlushWithError, FlushSocketPools -> FlushSocketPoolsWithError #

Total comments: 4

Patch Set 7 : rebase #

Patch Set 8 : fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -145 lines) Patch
M chrome/browser/chrome_to_mobile_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/web_history_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M google_apis/gaia/gaia_oauth_client.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M net/base/dnsrr_resolver.cc View 3 chunks +12 lines, -5 lines 0 comments Download
M net/base/dnsrr_resolver_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 5 chunks +7 lines, -7 lines 0 comments Download
M net/base/mock_host_resolver.h View 1 2 3 3 chunks +18 lines, -0 lines 0 comments Download
M net/base/mock_host_resolver.cc View 1 2 3 2 chunks +20 lines, -5 lines 0 comments Download
M net/base/net_error_list.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M net/http/http_pipelined_connection_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool.h View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 4 chunks +8 lines, -8 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M net/socket/client_socket_pool_manager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket_pool_manager_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket_pool_manager_impl.cc View 1 2 3 4 5 4 chunks +12 lines, -12 lines 0 comments Download
M net/socket/mock_client_socket_pool_manager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/mock_client_socket_pool_manager.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket_pool.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket_pool.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M net/socket/transport_client_socket_pool.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/transport_client_socket_pool_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_pool.h View 1 chunk +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 2 3 5 chunks +6 lines, -7 lines 0 comments Download
M net/spdy/spdy_session_spdy2_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/test_url_fetcher_factory.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 1 6 chunks +23 lines, -10 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 4 7 chunks +60 lines, -10 lines 0 comments Download
M net/url_request/url_fetcher_impl.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_impl.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 10 chunks +285 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Joao da Silva
Hi Paul, can you have a first look at this before asking a wider audience ...
8 years ago (2012-12-07 18:51:22 UTC) #1
pauljensen
I took a first look. It seems on track with what we discussed prior. I ...
8 years ago (2012-12-07 23:00:05 UTC) #2
Joao da Silva
+szym: please have a look. Also, please +cc whoever you think should have a look ...
8 years ago (2012-12-10 15:32:41 UTC) #3
pauljensen
https://codereview.chromium.org/11464028/diff/1/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/11464028/diff/1/net/url_request/url_fetcher_core.cc#newcode912 net/url_request/url_fetcher_core.cc:912: NetworkChangeNotifier::RemoveConnectionTypeObserver(this); On 2012/12/10 15:32:42, Joao da Silva wrote: > ...
8 years ago (2012-12-10 16:09:14 UTC) #4
szym
I have not looked at url_fetcher_impl_unittest.cc yet. HostResolver and ClientSocketPool both have the property that ...
8 years ago (2012-12-10 18:36:31 UTC) #5
Joao da Silva
+Will: please review this too, in particular the changes to client_socket_pool and url_fetcher_core. @Paul, Szymon: ...
8 years ago (2012-12-11 13:36:42 UTC) #6
pauljensen
https://codereview.chromium.org/11464028/diff/26001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/11464028/diff/26001/net/url_request/url_fetcher_core.cc#newcode310 net/url_request/url_fetcher_core.cc:310: num_retries_on_network_changes_ < max_retries_on_network_changes_) { I think you should swap ...
8 years ago (2012-12-11 16:46:29 UTC) #7
willchan no longer on Chromium
General nit for all the ClientSocketPool stuff. Please rename the member functions. Flush()=>FlushWithError(), AbortAllRequests()=>CancelAllRequestsWithError() https://codereview.chromium.org/11464028/diff/26001/net/socket/client_socket_pool_base.h ...
8 years ago (2012-12-11 17:39:33 UTC) #8
Joao da Silva
Thanks for the comments. @Will, Szymon: please see inline. Szymon's earlier comment makes sense, but ...
8 years ago (2012-12-11 17:52:57 UTC) #9
szym
https://codereview.chromium.org/11464028/diff/26001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/11464028/diff/26001/net/socket/client_socket_pool_base.h#newcode712 net/socket/client_socket_pool_base.h:712: void Flush() { helper_.Flush(ERR_NETWORK_CHANGED); } On 2012/12/11 17:39:33, willchan ...
8 years ago (2012-12-11 17:54:45 UTC) #10
willchan no longer on Chromium
https://codereview.chromium.org/11464028/diff/26001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/11464028/diff/26001/net/socket/client_socket_pool_base.h#newcode712 net/socket/client_socket_pool_base.h:712: void Flush() { helper_.Flush(ERR_NETWORK_CHANGED); } On 2012/12/11 17:54:45, szym ...
8 years ago (2012-12-11 18:06:14 UTC) #11
Joao da Silva
Please have another look. Besides the renames, the last patch also adds an error param ...
8 years ago (2012-12-11 21:14:55 UTC) #12
szym
LGTM with minor remarks. https://codereview.chromium.org/11464028/diff/28016/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/11464028/diff/28016/net/url_request/url_fetcher.h#newcode200 net/url_request/url_fetcher.h:200: // attempted once the network ...
8 years ago (2012-12-12 19:50:46 UTC) #13
willchan no longer on Chromium
Just to be clear, I've already sent all my comments, and trust that szym/pauljensen/whoever takes ...
8 years ago (2012-12-12 19:53:04 UTC) #14
Joao da Silva
Cool, thanks for the reviews :-) @Paul: please have one last look at the current ...
8 years ago (2012-12-12 20:17:20 UTC) #15
Jói
LGTM On Mon, Dec 10, 2012 at 3:32 PM, <joaodasilva@chromium.org> wrote: > +szym: please have ...
8 years ago (2012-12-12 21:16:12 UTC) #16
pauljensen
lgtm but I'd check with owners of those three files checking ERR_ABORTED before landing. I'd ...
8 years ago (2012-12-12 23:41:33 UTC) #17
jochen (gone - plz use gerrit)
lgtm
8 years ago (2012-12-13 10:04:01 UTC) #18
Joao da Silva
Last checks before landing, adding +mmenke, +jam and +michaeln (see below for what to look ...
8 years ago (2012-12-13 11:03:27 UTC) #19
jam
On 2012/12/13 11:03:27, Joao da Silva wrote: > 2. chrome/renderer/chrome_render_process_observer.cc > > @jam: there's no ...
8 years ago (2012-12-13 16:48:35 UTC) #20
mmenke
CaptivePortalHelper differentiates OnLoadAborted from other errors because it doesn't result in an error page - ...
8 years ago (2012-12-13 16:53:17 UTC) #21
mmenke
On 2012/12/13 16:53:17, Matt Menke wrote: > CaptivePortalHelper differentiates OnLoadAborted from other errors because it ...
8 years ago (2012-12-13 16:55:14 UTC) #22
michaeln
> 3. webkit/appcache/appcache_storage_impl.cc Yup, the source of that error is the disk_cache so not changing ...
8 years ago (2012-12-13 21:22:24 UTC) #23
Joao da Silva
Thanks all for your comments. As John mentioned, the code in RendererResourceDelegate::OnRequestComplete comes from the ...
8 years ago (2012-12-14 01:23:08 UTC) #24
mmenke
On 2012/12/14 01:23:08, Joao da Silva wrote: > Thanks all for your comments. > > ...
8 years ago (2012-12-14 01:41:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/11464028/39003
8 years ago (2012-12-14 12:53:06 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 15:39:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/11464028/39003
8 years ago (2012-12-14 16:00:24 UTC) #28
commit-bot: I haz the power
8 years ago (2012-12-14 20:40:46 UTC) #29
Retried try job too often on win_rel for step(s) browser_tests

Powered by Google App Engine
This is Rietveld 408576698