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

Issue 1054363002: Update DataReductionProxyNetworkDelegate/BypassStats to post tasks safely. (Closed)

Created:
5 years, 8 months ago by jeremyim
Modified:
5 years, 8 months ago
Reviewers:
bengr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update DataReductionProxyNetworkDelegate/BypassStats to post tasks safely. - DRP NetworkDelegate/BypassStats are no longer aware of the UI thread. - Add thread hopping functionality to DRP IOData/Service, using the correct WeakPtr to post tasks safely. - Construct BypassStats in the IOData constructor. BUG=472290 Committed: https://crrev.com/d0856baaed6f3817a96c657e4eab4b201655bb3a Cr-Commit-Position: refs/heads/master@{#324375}

Patch Set 1 #

Patch Set 2 : Fix unit test failure. #

Total comments: 10

Patch Set 3 : bengr CR comments #

Patch Set 4 : Rebase #

Total comments: 14

Patch Set 5 : bengr CR comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1280 lines, -1427 lines) Patch
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 2 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 1 chunk +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h View 1 2 4 chunks +3 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc View 1 2 4 chunks +5 lines, -23 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h View 1 2 3 4 4 chunks +53 lines, -20 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc View 1 2 3 4 7 chunks +499 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc View 1 2 12 chunks +606 lines, -52 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 2 4 chunks +9 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 2 3 2 chunks +26 lines, -11 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h View 1 2 3 chunks +18 lines, -12 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc View 1 2 2 chunks +2 lines, -415 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc View 1 2 3 2 chunks +2 lines, -648 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 5 chunks +1 line, -17 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 4 chunks +3 lines, -46 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 3 chunks +0 lines, -52 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h View 1 2 5 chunks +1 line, -20 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc View 1 2 3 4 7 chunks +8 lines, -83 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
jeremyim
PTAL!
5 years, 8 months ago (2015-04-03 08:02:41 UTC) #2
bengr
a few comments to get started... https://codereview.chromium.org/1054363002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc (right): https://codereview.chromium.org/1054363002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc#newcode108 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc:108: scoped_refptr<base::SingleThreadTaskRunner> io_task_runner) I ...
5 years, 8 months ago (2015-04-06 17:48:05 UTC) #3
jeremyim
https://codereview.chromium.org/1054363002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc (right): https://codereview.chromium.org/1054363002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc#newcode108 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc:108: scoped_refptr<base::SingleThreadTaskRunner> io_task_runner) On 2015/04/06 17:48:04, bengr wrote: > I ...
5 years, 8 months ago (2015-04-06 21:27:23 UTC) #6
bengr
https://codereview.chromium.org/1054363002/diff/60002/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc (right): https://codereview.chromium.org/1054363002/diff/60002/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc#newcode29 components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc:29: // Returns the |index|'th value of |list_value| as an ...
5 years, 8 months ago (2015-04-07 00:20:35 UTC) #7
jeremyim
https://codereview.chromium.org/1054363002/diff/60002/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc (right): https://codereview.chromium.org/1054363002/diff/60002/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc#newcode29 components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc:29: // Returns the |index|'th value of |list_value| as an ...
5 years, 8 months ago (2015-04-07 06:21:11 UTC) #8
bengr
lgtm
5 years, 8 months ago (2015-04-09 03:09:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1054363002/110001
5 years, 8 months ago (2015-04-09 03:11:03 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:110001)
5 years, 8 months ago (2015-04-09 04:48:00 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 04:48:39 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d0856baaed6f3817a96c657e4eab4b201655bb3a
Cr-Commit-Position: refs/heads/master@{#324375}

Powered by Google App Engine
This is Rietveld 408576698