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

Issue 30883003: Simple fallback implementation. (Closed)

Created:
7 years, 2 months ago by marq (ping after 24h)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@patched
Visibility:
Public.

Description

Simple http fallback for the data reduction proxy. This CL adds a new command line option and preprocessor macro for a second proxy that the data reduction proxy feature will add to its configs as a fallback from the primary proxy. If the fallback proxy isn't defined, only the primary proxy is part of the configurations, and vice-versa. (Also fixes a bug where a http proxy specified on the command line would still be configured as HTTPS in the generated PAC file). BUG=306634 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230728

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Refactor of authentication handling. #

Total comments: 21

Patch Set 4 : Unit tests passing, feedback applied. #

Total comments: 42

Patch Set 5 : Further tests, applied feedback. #

Total comments: 12

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Sync with trunk #

Patch Set 10 : Minor fixes from trybot runs. #

Total comments: 4

Patch Set 11 : Updated javadocs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -187 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -9 lines 0 comments Download
D chrome/android/testshell/chrome_data_reduction_proxy_testshell_android.cc View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/app/android/chrome_data_reduction_proxy_android.h View 1 2 3 4 5 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/app/android/chrome_data_reduction_proxy_android.cc View 1 2 3 4 5 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h View 1 2 3 4 5 8 chunks +47 lines, -10 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc View 1 2 3 4 5 6 7 8 9 14 chunks +165 lines, -39 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h View 1 2 3 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 1 2 7 chunks +51 lines, -16 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +145 lines, -13 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -31 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/chrome_android.gypi View 1 2 3 4 5 3 chunks +0 lines, -16 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
marq (ping after 24h)
7 years, 2 months ago (2013-10-20 15:50:17 UTC) #1
bengr
https://codereview.chromium.org/30883003/diff/1/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/30883003/diff/1/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode153 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:153: std::string DataReductionProxySettings::GetDataReductionProxyFallback() { I think we should enforce that ...
7 years, 2 months ago (2013-10-20 18:19:31 UTC) #2
marq (ping after 24h)
Thanks, PTAL. https://codereview.chromium.org/30883003/diff/1/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/30883003/diff/1/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode153 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:153: std::string DataReductionProxySettings::GetDataReductionProxyFallback() { On 2013/10/20 18:19:31, bengr1 ...
7 years, 2 months ago (2013-10-20 20:43:52 UTC) #3
bengr
lgtm, with nit. Please do not submit this code until you are sure that authentication ...
7 years, 2 months ago (2013-10-20 21:51:48 UTC) #4
marq (ping after 24h)
Okay. This is the meat of how I'd like to handle the authentication change. Here's ...
7 years, 2 months ago (2013-10-22 00:41:18 UTC) #5
bengr
I think what you've done makes sense. Here are some nits. I'll do a more ...
7 years, 2 months ago (2013-10-22 01:02:08 UTC) #6
marq (ping after 24h)
Tests passing now, more to come. PTAL. https://codereview.chromium.org/30883003/diff/190001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/30883003/diff/190001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode216 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:216: kAuthenticationRealmName) On ...
7 years, 2 months ago (2013-10-22 14:44:20 UTC) #7
bengr
https://codereview.chromium.org/30883003/diff/190001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h (right): https://codereview.chromium.org/30883003/diff/190001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h#newcode23 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h:23: class HttpNetworkSession; On 2013/10/22 14:44:20, marq_ wrote: > On ...
7 years, 2 months ago (2013-10-22 17:49:30 UTC) #8
marq (ping after 24h)
Thanks for the feedback. One notable change in this patch: GetDataReductionProxies() returns a vector of ...
7 years, 2 months ago (2013-10-22 21:18:01 UTC) #9
bengr
lgtm, with nits, and of course don't submit until Android and iOS function as expected. ...
7 years, 2 months ago (2013-10-22 21:44:21 UTC) #10
marq (ping after 24h)
Last set of changes; this includes everything to make the auth cache prepopulation work.
7 years, 2 months ago (2013-10-23 00:32:02 UTC) #11
bengr
still lgtm, still outstanding nits from #6
7 years, 2 months ago (2013-10-23 01:02:44 UTC) #12
bengr
On 2013/10/23 01:02:44, bengr1 wrote: > still lgtm, still outstanding nits from #6 I mean ...
7 years, 2 months ago (2013-10-23 01:03:00 UTC) #13
bengr
https://codereview.chromium.org/30883003/diff/330001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/30883003/diff/330001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode152 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc:152: crypto::RandBytes(&rand3, sizeof(rand3)); would it be possible to have something ...
7 years, 2 months ago (2013-10-23 01:38:15 UTC) #14
marq (ping after 24h)
On 2013/10/23 01:38:15, bengr1 wrote: > https://codereview.chromium.org/30883003/diff/330001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc > File chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc (right): > > https://codereview.chromium.org/30883003/diff/330001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc#newcode152 > ...
7 years, 2 months ago (2013-10-23 12:13:53 UTC) #15
marq (ping after 24h)
Final tweaks, thanks. https://codereview.chromium.org/30883003/diff/450001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc (right): https://codereview.chromium.org/30883003/diff/450001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc#newcode240 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc:240: proxies.begin(); On 2013/10/22 21:44:22, bengr1 wrote: ...
7 years, 2 months ago (2013-10-23 12:23:20 UTC) #16
marq (ping after 24h)
Adding OWNERS: +willchan for profile_impl_io_data.cc +dtrainor@chromium.org for chrome/app/android/... and chrome/android/.. We're pushing to have this ...
7 years, 2 months ago (2013-10-23 12:36:57 UTC) #17
David Trainor- moved to gerrit
chrome/android and chrome/app/android lgtm https://codereview.chromium.org/30883003/diff/930001/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java File chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java (right): https://codereview.chromium.org/30883003/diff/930001/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java#newcode135 chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java:135: * Returns true if the ...
7 years, 2 months ago (2013-10-23 16:12:37 UTC) #18
marq (ping after 24h)
dtrainor: Thanks for the quick review! https://codereview.chromium.org/30883003/diff/930001/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java File chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java (right): https://codereview.chromium.org/30883003/diff/930001/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java#newcode135 chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java:135: * Returns true ...
7 years, 2 months ago (2013-10-23 16:28:49 UTC) #19
marq (ping after 24h)
-willchan, +mmenke as OWNER for profile_impl_io_data.cc Everything else in this CL is reviewed and ready ...
7 years, 2 months ago (2013-10-23 16:30:54 UTC) #20
mmenke
On 2013/10/23 16:30:54, marq_ wrote: > -willchan, +mmenke as OWNER for profile_impl_io_data.cc > > Everything ...
7 years, 2 months ago (2013-10-23 17:46:10 UTC) #21
marq (ping after 24h)
On 2013/10/23 17:46:10, mmenke wrote: > On 2013/10/23 16:30:54, marq_ wrote: > > -willchan, +mmenke ...
7 years, 2 months ago (2013-10-23 17:51:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@chromium.org/30883003/990001
7 years, 2 months ago (2013-10-23 18:28:07 UTC) #23
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=92478
7 years, 2 months ago (2013-10-24 01:02:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marq@chromium.org/30883003/990001
7 years, 2 months ago (2013-10-24 14:30:05 UTC) #25
commit-bot: I haz the power
7 years, 2 months ago (2013-10-24 15:54:41 UTC) #26
Message was sent while issue was closed.
Change committed as 230728

Powered by Google App Engine
This is Rietveld 408576698