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

Issue 1680893002: Moving proxy resolution logic out of NetworkDelegate and into ProxyDelegate for DataReductionProxy (Closed)

Created:
4 years, 10 months ago by RyanSturm
Modified:
4 years, 10 months ago
Reviewers:
asanka, bengr
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moving proxy resolution logic out of NetworkDelegate and into ProxyDelegate for DataReductionProxy This involves removing two methods off the NetworkDelegate interface (and four off LayeredNetworkDelegate). DataReductionProxy's logic for these two methods will be moved to the DataReductionProxyDelegate from the DataReductionProxyNetworkDelegate. This also involved cleaning up some unit tests and moving calls to use ProxyDelegate instead of NetworkDelegate where relevant. Refactoring proxy related calls from NetworkDelegate to ProxyDelegate BUG=583369 Committed: https://crrev.com/7de050c68ce2a97c0165d09d06c89b8aff79fb77 Cr-Commit-Position: refs/heads/master@{#376860}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Addressing small issues with v1 (NULL -> nullptr, header includes for unittests, etc.) #

Patch Set 3 : Rebased change #

Total comments: 6

Patch Set 4 : fixed some nit issues in comments and NULL -> nullptr #

Total comments: 2

Patch Set 5 : rebase and add new line #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -645 lines) Patch
M components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc View 1 3 chunks +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc View 1 3 chunks +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h View 1 2 chunks +26 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc View 1 2 3 4 5 2 chunks +63 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc View 1 2 3 4 5 2 chunks +472 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 2 3 4 2 chunks +12 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 1 2 3 4 3 chunks +8 lines, -44 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 4 5 4 chunks +2 lines, -67 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -284 lines 0 comments Download
M net/base/layered_network_delegate.h View 1 2 chunks +0 lines, -15 lines 0 comments Download
M net/base/layered_network_delegate.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M net/base/layered_network_delegate_unittest.cc View 1 4 chunks +0 lines, -30 lines 0 comments Download
M net/base/network_delegate.h View 3 chunks +0 lines, -22 lines 0 comments Download
M net/base/network_delegate.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M net/base/network_delegate_impl.h View 2 chunks +0 lines, -16 lines 0 comments Download
M net/base/network_delegate_impl.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M net/proxy/proxy_service.h View 5 chunks +9 lines, -9 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 12 chunks +34 lines, -48 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 2 3 4 9 chunks +57 lines, -24 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 chunk +8 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M net/websockets/websocket_end_to_end_test.cc View 3 chunks +26 lines, -9 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
RyanSturm
Refactoring the proxy logic out of NetworkDelegate and into ProxyDelegate.
4 years, 10 months ago (2016-02-08 21:00:31 UTC) #3
bengr
https://codereview.chromium.org/1680893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc (right): https://codereview.chromium.org/1680893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc#newcode808 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc:808: scoped_ptr<net::ProxyDelegate> proxy_delegate_; #include "net/base/proxy_delegate.h" https://codereview.chromium.org/1680893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc (right): https://codereview.chromium.org/1680893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc#newcode704 ...
4 years, 10 months ago (2016-02-08 23:23:30 UTC) #4
RyanSturm
Took all suggested changes except DataCompressionProxyCriticalBypass, as there are some other changes needed for that ...
4 years, 10 months ago (2016-02-09 00:46:03 UTC) #5
RyanSturm
Rebased change and adding asanka as a reviewer for /net/
4 years, 10 months ago (2016-02-09 22:50:31 UTC) #7
asanka
lgtm. only nits. cc += mmenke FYI since he's also CC'd on the bug. https://codereview.chromium.org/1680893002/diff/30001/net/proxy/proxy_service.cc ...
4 years, 10 months ago (2016-02-10 23:47:49 UTC) #8
mmenke
Awesome! Thanks so much for doing this!
4 years, 10 months ago (2016-02-10 23:51:35 UTC) #9
RyanSturm
https://codereview.chromium.org/1680893002/diff/30001/net/proxy/proxy_service.cc File net/proxy/proxy_service.cc (right): https://codereview.chromium.org/1680893002/diff/30001/net/proxy/proxy_service.cc#newcode1090 net/proxy/proxy_service.cc:1090: NULL /* pac_request*/, proxy_delegate, On 2016/02/10 23:47:48, asanka wrote: ...
4 years, 10 months ago (2016-02-11 17:46:59 UTC) #10
bengr
lgtm. Thanks for doing this. One nit. https://codereview.chromium.org/1680893002/diff/50001/net/proxy/proxy_service_unittest.cc File net/proxy/proxy_service_unittest.cc (right): https://codereview.chromium.org/1680893002/diff/50001/net/proxy/proxy_service_unittest.cc#newcode232 net/proxy/proxy_service_unittest.cc:232: // ProxyDelegate ...
4 years, 10 months ago (2016-02-16 19:06:17 UTC) #11
RyanSturm
https://codereview.chromium.org/1680893002/diff/50001/net/proxy/proxy_service_unittest.cc File net/proxy/proxy_service_unittest.cc (right): https://codereview.chromium.org/1680893002/diff/50001/net/proxy/proxy_service_unittest.cc#newcode232 net/proxy/proxy_service_unittest.cc:232: // ProxyDelegate implementation: On 2016/02/16 19:06:17, bengr wrote: > ...
4 years, 10 months ago (2016-02-17 00:08:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680893002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680893002/70001
4 years, 10 months ago (2016-02-22 19:30:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/25201) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-22 19:41:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680893002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680893002/90001
4 years, 10 months ago (2016-02-22 23:59:53 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 10 months ago (2016-02-23 00:10:28 UTC) #22
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/7de050c68ce2a97c0165d09d06c89b8aff79fb77 Cr-Commit-Position: refs/heads/master@{#376860}
4 years, 10 months ago (2016-02-23 00:11:30 UTC) #24
xunjieli
On 2016/02/23 00:11:30, commit-bot: I haz the power wrote: > Patchset 6 (id:??) landed as ...
4 years, 10 months ago (2016-02-23 15:07:49 UTC) #25
chromium-reviews
I agree that this looks like it is caused by my CL. I'll look at ...
4 years, 10 months ago (2016-02-23 16:34:06 UTC) #26
RyanSturm
I have a fix for the Cronet test, and it will be in code review ...
4 years, 10 months ago (2016-02-24 02:13:57 UTC) #27
RyanSturm
I have a fix for the Cronet test, and it will be in code review ...
4 years, 10 months ago (2016-02-24 02:14:00 UTC) #28
agrieve
A revert of this CL (patchset #6 id:90001) has been created in https://codereview.chromium.org/1735203002/ by agrieve@chromium.org. ...
4 years, 10 months ago (2016-02-25 17:06:53 UTC) #29
RyanSturm
4 years, 10 months ago (2016-02-25 17:15:38 UTC) #30
Message was sent while issue was closed.
On 2016/02/25 17:06:53, agrieve wrote:
> A revert of this CL (patchset #6 id:90001) has been created in
> https://codereview.chromium.org/1735203002/ by mailto:agrieve@chromium.org.
> 
> The reason for reverting is: Most likely cause of failing test on bot:
> https://bugs.chromium.org/p/chromium/issues/detail?id=589832
> .
Fix for failing cronet test hlin code review here:
https://codereview.chromium.org/1725123005/

Powered by Google App Engine
This is Rietveld 408576698