|
Class ownership changes:
- DRPIOData is a container for IOData lifetime objects, and constructed first.
- DataSaverService is a container for Profile/UI based lifetime objects, and
constructed second. It can take raw pointers to DRPIOData, since
DataSaverService is destroyed before DRPIOData.
- DRPIOData (and its classes) then fed a WeakPtr to the DataSaverService.
- DataSaverService is (temporarily) owned by DRPSettings (primarily because
DRPChromeSettings is the KeyedService) - this will swap in a future CL.
- During KeyedService shutdown, the WeakPtr is invalidated.
Removal of redundant functionality in the DRPSettings:
- I/O thread related functionality (Canary check, IP address change) now lives
in the Config class, with calls into DataSaverService to use the URLFetcher
- the Settings class no longer is aware of Params, and instead uses the Config
class for retrieving information - this results in Params construction
moving from Settings -> DRP IO/Data
- Certain information which is exposed to the UI (via the Settings class) is
now cached after being retrieved from the Config class (for thread safety)
BUG= 452773
Committed: https://crrev.com/f917e431fd15598c0e28dbc9a39ac408272548a4
Cr-Commit-Position: refs/heads/master@{#317432}
Total comments: 3
Total comments: 37
Total comments: 9
Total comments: 2
Total comments: 22
Total comments: 47
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+967 lines, -1613 lines) |
Patch |
 |
M |
android_webview/browser/aw_browser_context.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/aw_browser_context.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
6 chunks |
+21 lines, -33 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+24 lines, -33 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+13 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+33 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc
|
View
|
|
2 chunks |
+1 line, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -3 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
|
4 chunks |
+13 lines, -48 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
|
3 chunks |
+12 lines, -21 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
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
6
7
8
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
8 chunks |
+51 lines, -39 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
10 chunks |
+99 lines, -66 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+38 lines, -17 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+38 lines, -24 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
10 chunks |
+29 lines, -17 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
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
8 chunks |
+22 lines, -36 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+23 lines, -37 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+4 lines, -28 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+5 lines, -7 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
9
|
4 chunks |
+14 lines, -9 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
8
9
|
5 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
A |
components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
7 chunks |
+57 lines, -141 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
12 chunks |
+54 lines, -374 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+14 lines, -84 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
7 chunks |
+43 lines, -172 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
11 chunks |
+37 lines, -265 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
7 chunks |
+22 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+49 lines, -31 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+6 lines, -6 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
8
9
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
8 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
Total messages: 46 (13 generated)
|