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

Issue 966443002: Add DataReductionProxy IPC to determine if the Data Reduction Proxy was used. (Closed)

Created:
5 years, 10 months ago by jeremyim
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DataReductionProxy IPC to determine if the Data Reduction Proxy was used. The current mechanism is to create an instance of DataReductionProxyParams inside of page_load_histogram, and to then check the proxy server inside of DocumentState against DataReductionProxyParams. However, the plan is to make the configuration dynamic, so we can no longer use DataReductionProxyParams. BUG=452773 Committed: https://crrev.com/364ac1187dced06102a369d0610ed0a853577b27 Cr-Commit-Position: refs/heads/master@{#318917}

Patch Set 1 #

Total comments: 14

Patch Set 2 : bengr CR comments, update OWNERS for IPC messages #

Total comments: 6

Patch Set 3 : ppi CR comments #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Const ref proxy_server #

Total comments: 3

Patch Set 6 : Rebase #

Patch Set 7 : Rebase to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -62 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/page_load_histograms.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 2 chunks +1 line, -4 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy.gypi View 2 chunks +33 lines, -1 line 0 comments Download
M components/data_reduction_proxy/OWNERS View 1 1 chunk +14 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/content/browser/BUILD.gn View 1 chunk +44 lines, -20 lines 0 comments Download
A + components/data_reduction_proxy/content/browser/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h View 1 1 chunk +47 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc View 1 1 chunk +54 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter_unittest.cc View 1 1 chunk +64 lines, -0 lines 0 comments Download
A + components/data_reduction_proxy/content/common/BUILD.gn View 1 chunk +4 lines, -5 lines 0 comments Download
A + components/data_reduction_proxy/content/common/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A components/data_reduction_proxy/content/common/data_reduction_proxy_messages.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A + components/data_reduction_proxy/content/common/data_reduction_proxy_messages.cc View 1 chunk +7 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h View 2 chunks +6 lines, -6 lines 0 comments Download
M content/public/renderer/document_state.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (8 generated)
jeremyim
PTAL, and thank you! =) tsepez => ipc/ipc_message_start.h creis => content/public/renderer/document_state.h ppi => chrome/renderer/page_load_histograms.* bengr ...
5 years, 9 months ago (2015-02-26 20:32:17 UTC) #2
bengr
https://codereview.chromium.org/966443002/diff/1/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc File components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc (right): https://codereview.chromium.org/966443002/diff/1/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc#newcode20 components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc:20: if (settings != nullptr) Why is this not a ...
5 years, 9 months ago (2015-02-26 22:52:52 UTC) #3
Tom Sepez
You'll need to make security team owners of your new message file in components/data_reduction_proxy/OWNERS per-file ...
5 years, 9 months ago (2015-02-26 22:54:55 UTC) #4
jeremyim
OWNERS file updated. https://codereview.chromium.org/966443002/diff/1/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc File components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc (right): https://codereview.chromium.org/966443002/diff/1/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc#newcode20 components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc:20: if (settings != nullptr) On 2015/02/26 ...
5 years, 9 months ago (2015-02-27 04:38:41 UTC) #5
ppi
chrome/renderer/page_load_histograms lgtm https://codereview.chromium.org/966443002/diff/20001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/966443002/diff/20001/chrome/renderer/page_load_histograms.cc#newcode754 chrome/renderer/page_load_histograms.cc:754: data_reduction_proxy_was_used = false; nit: no need for ...
5 years, 9 months ago (2015-02-27 10:28:00 UTC) #6
jeremyim
https://codereview.chromium.org/966443002/diff/20001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/966443002/diff/20001/chrome/renderer/page_load_histograms.cc#newcode754 chrome/renderer/page_load_histograms.cc:754: data_reduction_proxy_was_used = false; On 2015/02/27 10:28:00, ppi wrote: > ...
5 years, 9 months ago (2015-02-27 16:42:53 UTC) #7
Tom Sepez
lgtm
5 years, 9 months ago (2015-02-27 17:19:39 UTC) #8
Charlie Reis
https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h#newcode164 content/public/renderer/document_state.h:164: net::HostPortPair& proxy_server() { return proxy_server_; } Why do you ...
5 years, 9 months ago (2015-02-27 22:07:42 UTC) #9
jeremyim
https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h#newcode164 content/public/renderer/document_state.h:164: net::HostPortPair& proxy_server() { return proxy_server_; } On 2015/02/27 22:07:42, ...
5 years, 9 months ago (2015-02-27 22:17:01 UTC) #10
bengr
components/data_reduction_proxy.* and chrome/browser/chrome_content_browser_client.cc lgtm
5 years, 9 months ago (2015-02-27 22:33:45 UTC) #11
Charlie Reis
https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h#newcode164 content/public/renderer/document_state.h:164: net::HostPortPair& proxy_server() { return proxy_server_; } On 2015/02/27 22:17:01, ...
5 years, 9 months ago (2015-02-27 22:37:36 UTC) #12
jeremyim
https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/60001/content/public/renderer/document_state.h#newcode164 content/public/renderer/document_state.h:164: net::HostPortPair& proxy_server() { return proxy_server_; } On 2015/02/27 22:37:36, ...
5 years, 9 months ago (2015-02-27 22:50:55 UTC) #13
Charlie Reis
https://codereview.chromium.org/966443002/diff/80001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/80001/content/public/renderer/document_state.h#newcode165 content/public/renderer/document_state.h:165: void set_proxy_server(const net::HostPortPair& proxy_server) { I don't think you ...
5 years, 9 months ago (2015-02-27 23:35:31 UTC) #14
jeremyim
https://codereview.chromium.org/966443002/diff/80001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/80001/content/public/renderer/document_state.h#newcode165 content/public/renderer/document_state.h:165: void set_proxy_server(const net::HostPortPair& proxy_server) { On 2015/02/27 23:35:31, Charlie ...
5 years, 9 months ago (2015-02-27 23:37:42 UTC) #15
Charlie Reis
Ok, content/public LGTM. https://codereview.chromium.org/966443002/diff/80001/content/public/renderer/document_state.h File content/public/renderer/document_state.h (right): https://codereview.chromium.org/966443002/diff/80001/content/public/renderer/document_state.h#newcode165 content/public/renderer/document_state.h:165: void set_proxy_server(const net::HostPortPair& proxy_server) { On ...
5 years, 9 months ago (2015-02-27 23:58:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966443002/100001
5 years, 9 months ago (2015-03-03 00:05:48 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/63776)
5 years, 9 months ago (2015-03-03 00:10:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966443002/120001
5 years, 9 months ago (2015-03-03 00:58:29 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/46808)
5 years, 9 months ago (2015-03-03 01:42:30 UTC) #26
brettw
lgtm
5 years, 9 months ago (2015-03-03 18:42:35 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966443002/120001
5 years, 9 months ago (2015-03-03 18:45:23 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-03 18:50:20 UTC) #30
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/364ac1187dced06102a369d0610ed0a853577b27 Cr-Commit-Position: refs/heads/master@{#318917}
5 years, 9 months ago (2015-03-03 18:50:54 UTC) #31
jeremyim
5 years, 9 months ago (2015-03-03 18:52:59 UTC) #32
Message was sent while issue was closed.
On 2015/03/03 18:50:54, I haz the power (commit-bot) wrote:
> Patchset 7 (id:??) landed as
> https://crrev.com/364ac1187dced06102a369d0610ed0a853577b27
> Cr-Commit-Position: refs/heads/master@{#318917}

Thanks all for reviewing this!

Powered by Google App Engine
This is Rietveld 408576698