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

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed)

Created:
6 years ago by bengr
Modified:
5 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@network-delegate
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wrapped data reduction proxy initialization into its own class The data reduction proxy code is initialized in profile code in Chrome, primarily in ProfileImplIOData, and in the AwBrowserContext and AwURLRequestContextGetter. This code is rather involved. This change moves that initialization logic to a new class, DataReductionProxyIOData, to avoid duplication across platforms, and reduce the potential for regressions. This CL also completely removes DRP support from the system network delegate. BUG=429732, 447346 Committed: https://crrev.com/9463b577e5b356ee515c0b98ecacf3b6b779394b Cr-Commit-Position: refs/heads/master@{#312975}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : Addressed comment from mmenke #

Total comments: 4

Patch Set 4 : addressed mmenke, rebased #

Total comments: 58

Patch Set 5 : Addressed comments from sclittle #

Total comments: 42

Patch Set 6 : Addressed all comments #

Patch Set 7 : Addressed comments from mmenke and sgurun #

Patch Set 8 : Rebase #

Total comments: 32

Patch Set 9 : Addressed comment from mmenke #

Total comments: 2

Patch Set 10 : Updated test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+890 lines, -703 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 3 chunks +5 lines, -10 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 7 chunks +37 lines, -36 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -31 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 3 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 5 chunks +1 line, -57 lines 0 comments Download
M chrome/browser/net/predictor.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 4 chunks +1 line, -84 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 4 chunks +1 line, -15 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 14 chunks +28 lines, -91 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 chunks +14 lines, -103 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc View 1 2 3 4 5 chunks +18 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -18 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 2 3 4 5 6 7 8 1 chunk +149 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 2 3 4 5 6 7 8 1 chunk +119 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +159 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 1 2 3 4 chunks +3 lines, -23 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 4 5 6 7 8 chunks +12 lines, -20 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 4 5 6 7 6 chunks +24 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h View 1 2 3 4 5 6 chunks +22 lines, -26 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc View 1 2 3 4 5 6 7 6 chunks +103 lines, -101 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats_unittest.cc View 1 2 3 4 11 chunks +27 lines, -33 lines 0 comments Download

Messages

Total messages: 43 (14 generated)
bengr
mmenke: chrome/browser/* and please take a look at the approach, in general.
6 years ago (2014-12-16 00:47:59 UTC) #8
mmenke
On 2014/12/16 00:47:59, bengr wrote: > mmenke: chrome/browser/* and please take a look at the ...
6 years ago (2014-12-16 16:42:51 UTC) #9
bengr
On 2014/12/16 16:42:51, mmenke wrote: > On 2014/12/16 00:47:59, bengr wrote: > > mmenke: chrome/browser/* ...
6 years ago (2014-12-16 18:08:16 UTC) #10
mmenke
Think this is much better, though there's still a lot of room for improvement, here, ...
6 years ago (2014-12-17 21:37:22 UTC) #11
bengr
https://codereview.chromium.org/778463002/diff/140001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/778463002/diff/140001/chrome/browser/io_thread.cc#newcode608 chrome/browser/io_thread.cc:608: globals_->data_reduction_proxy_io_data->network_delegate()); On 2014/12/17 21:37:22, mmenke (OOO 12-20 to 1-4) ...
6 years ago (2014-12-19 20:05:58 UTC) #12
mmenke
Sorry for slowness - probably won't get to this today, but will get to it ...
5 years, 11 months ago (2015-01-08 18:21:06 UTC) #13
bengr
On 2015/01/08 18:21:06, mmenke wrote: > Sorry for slowness - probably won't get to this ...
5 years, 11 months ago (2015-01-08 18:25:22 UTC) #14
mmenke
One quick relevant comment. (Well..and a bonus nit). https://codereview.chromium.org/778463002/diff/160001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/778463002/diff/160001/chrome/browser/io_thread.cc#newcode1063 chrome/browser/io_thread.cc:1063: globals.data_reduction_proxy_io_data->proxy_delegate(); ...
5 years, 11 months ago (2015-01-09 21:09:50 UTC) #15
bengr
sgurun: android_webview sclittle: components/data_reduction_proxy* and chrome/browser/net/spdyproxy/* mmenke: chrome/browser/profile*, chrome/browser/io_thread*, chrome/browser/net/predictor.cc https://codereview.chromium.org/778463002/diff/160001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/778463002/diff/160001/chrome/browser/io_thread.cc#newcode1063 ...
5 years, 11 months ago (2015-01-14 21:39:54 UTC) #22
sclittle
https://codereview.chromium.org/778463002/diff/280001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/778463002/diff/280001/android_webview/browser/aw_browser_context.cc#newcode161 android_webview/browser/aw_browser_context.cc:161: data_reduction_proxy_settings_.reset( Would it be possible to pull the initialization ...
5 years, 11 months ago (2015-01-14 22:54:47 UTC) #23
bengr
https://codereview.chromium.org/778463002/diff/280001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/778463002/diff/280001/android_webview/browser/aw_browser_context.cc#newcode161 android_webview/browser/aw_browser_context.cc:161: data_reduction_proxy_settings_.reset( On 2015/01/14 22:54:46, sclittle wrote: > Would it ...
5 years, 11 months ago (2015-01-15 00:30:32 UTC) #24
sclittle
https://codereview.chromium.org/778463002/diff/280001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/778463002/diff/280001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode17 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:17: On 2015/01/15 00:30:31, bengr wrote: > On 2015/01/14 22:54:46, ...
5 years, 11 months ago (2015-01-15 02:18:56 UTC) #25
sgurun-gerrit only
https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc#newcode168 android_webview/browser/aw_browser_context.cc:168: data_reduction_proxy_settings_->params()->Clone(), you are already passing settings to DataReductionProxyIOData constructor, ...
5 years, 11 months ago (2015-01-16 19:02:03 UTC) #26
mmenke
I'm relying on the other reviewers to check for correctness of the changes, but I'm ...
5 years, 11 months ago (2015-01-16 19:03:21 UTC) #27
sgurun-gerrit only
https://codereview.chromium.org/778463002/diff/300001/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/778463002/diff/300001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode205 android_webview/browser/net/aw_url_request_context_getter.cc:205: builder.set_network_delegate( also please add a comment here explaining what ...
5 years, 11 months ago (2015-01-16 19:04:40 UTC) #28
bengr
https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc#newcode168 android_webview/browser/aw_browser_context.cc:168: data_reduction_proxy_settings_->params()->Clone(), On 2015/01/16 19:02:03, sgurun wrote: > you are ...
5 years, 11 months ago (2015-01-17 00:20:48 UTC) #29
mmenke
Quick response https://codereview.chromium.org/778463002/diff/300001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/778463002/diff/300001/chrome/browser/profiles/profile_impl.cc#newcode658 chrome/browser/profiles/profile_impl.cc:658: &data_reduction_proxy_configurator).Pass(); On 2015/01/17 00:20:47, bengr wrote: > ...
5 years, 11 months ago (2015-01-17 00:29:55 UTC) #30
sclittle
On 2015/01/17 00:29:55, mmenke wrote: > Quick response > > https://codereview.chromium.org/778463002/diff/300001/chrome/browser/profiles/profile_impl.cc > File chrome/browser/profiles/profile_impl.cc (right): ...
5 years, 11 months ago (2015-01-17 00:38:27 UTC) #31
sgurun-gerrit only
https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc#newcode274 android_webview/browser/aw_browser_context.cc:274: GetAwURLRequestContext()->GetNetLog(), On 2015/01/17 00:20:47, bengr wrote: > On 2015/01/16 ...
5 years, 11 months ago (2015-01-17 00:44:34 UTC) #32
bengr
https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc#newcode274 android_webview/browser/aw_browser_context.cc:274: GetAwURLRequestContext()->GetNetLog(), On 2015/01/17 00:44:34, sgurun wrote: > On 2015/01/17 ...
5 years, 11 months ago (2015-01-21 23:28:02 UTC) #33
sgurun-gerrit only
On 2015/01/21 23:28:02, bengr wrote: > https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc > File android_webview/browser/aw_browser_context.cc (right): > > https://codereview.chromium.org/778463002/diff/300001/android_webview/browser/aw_browser_context.cc#newcode274 > ...
5 years, 11 months ago (2015-01-21 23:30:16 UTC) #34
mmenke
https://codereview.chromium.org/778463002/diff/360001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/778463002/diff/360001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode10 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:10: #include "chrome/browser/net/chrome_net_log.h" Per suggestion in other file, can get ...
5 years, 11 months ago (2015-01-22 17:14:49 UTC) #35
mmenke
And sorry for the slow response - I completely forgot this one was in my ...
5 years, 11 months ago (2015-01-22 17:17:22 UTC) #36
bengr
https://codereview.chromium.org/778463002/diff/360001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/778463002/diff/360001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode10 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:10: #include "chrome/browser/net/chrome_net_log.h" On 2015/01/22 17:14:48, mmenke wrote: > Per ...
5 years, 11 months ago (2015-01-23 20:09:04 UTC) #37
mmenke
LGTM! Thanks for the cleanup! The profile hooks look so much nicer! Note that I ...
5 years, 11 months ago (2015-01-23 20:48:54 UTC) #38
bengr
https://codereview.chromium.org/778463002/diff/380001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/778463002/diff/380001/chrome/browser/profiles/profile_impl_io_data.cc#newcode173 chrome/browser/profiles/profile_impl_io_data.cc:173: ChromeNetLog* const net_log = g_browser_process->io_thread()->net_log(); On 2015/01/23 20:48:54, mmenke ...
5 years, 11 months ago (2015-01-23 22:33:42 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/778463002/400001
5 years, 11 months ago (2015-01-23 22:35:14 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:400001)
5 years, 11 months ago (2015-01-24 00:25:29 UTC) #42
commit-bot: I haz the power
5 years, 11 months ago (2015-01-24 00:27:06 UTC) #43
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9463b577e5b356ee515c0b98ecacf3b6b779394b
Cr-Commit-Position: refs/heads/master@{#312975}

Powered by Google App Engine
This is Rietveld 408576698