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

Issue 1017853003: Add ClientConfig proto, and JSON generation/parsing. (Closed)

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

Description

Add ClientConfig proto, and JSON generation/parsing. - Add the ClientConfig proto definition corresponding to the response coming from the service. - Create a means of generating a pseudo response from the built in params and request options. - Create a class to parse the JSON response. - Add necessary helper classes for the ProxyScheme and time values coming from the service. BUG=466753 Committed: https://crrev.com/97652ebe50c4be712aa976776bee9694cbce1178 Cr-Commit-Position: refs/heads/master@{#321931} Committed: https://crrev.com/9e0b2ffcac69765ab045fd6878301a8b4ea189ee Cr-Commit-Position: refs/heads/master@{#322021}

Patch Set 1 #

Patch Set 2 : Change DCHECK to if/return #

Patch Set 3 : Formatting and unit test fix. #

Total comments: 53

Patch Set 4 : bengr/sclittle CR comments #

Patch Set 5 : Fix unit test failure #

Total comments: 1

Patch Set 6 : Add data_reduction_proxy prefix #

Patch Set 7 : Tweak test values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1031 lines, -52 lines) Patch
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 1 2 3 4 5 5 chunks +24 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc View 1 2 3 4 5 1 chunk +52 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h View 1 2 3 6 chunks +25 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc View 1 2 3 4 5 7 chunks +47 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options_unittest.cc View 3 chunks +60 lines, -36 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h View 1 2 3 7 chunks +55 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 1 2 5 chunks +71 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/common/BUILD.gn View 1 2 3 4 5 4 chunks +5 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.cc View 1 2 3 4 5 1 chunk +166 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser_unittest.cc View 1 2 3 4 5 6 1 chunk +234 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 2 chunks +5 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 2 3 4 5 3 chunks +43 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc View 2 chunks +27 lines, -0 lines 0 comments Download
A + components/data_reduction_proxy/proto/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
A components/data_reduction_proxy/proto/client_config.proto View 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
jeremyim
PTAL. =)
5 years, 9 months ago (2015-03-17 23:32:06 UTC) #2
sclittle
https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.h (right): https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.h#newcode15 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.h:15: class DictionaryValue; Remove unused forward declaration https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.h#newcode24 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.h:24: // ...
5 years, 9 months ago (2015-03-18 20:31:51 UTC) #3
bengr
https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc (right): https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc#newcode27 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc:27: std::string DataReductionProxyConfigClient::ConstructStaticResponse() { Can this method be const? https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc#newcode33 ...
5 years, 9 months ago (2015-03-19 16:31:15 UTC) #4
jeremyim
https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc (right): https://codereview.chromium.org/1017853003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc#newcode27 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_client.cc:27: std::string DataReductionProxyConfigClient::ConstructStaticResponse() { On 2015/03/19 16:31:14, bengr wrote: > ...
5 years, 9 months ago (2015-03-20 16:21:12 UTC) #5
bengr
lgtm, with a q. https://codereview.chromium.org/1017853003/diff/80001/components/data_reduction_proxy.gypi File components/data_reduction_proxy.gypi (right): https://codereview.chromium.org/1017853003/diff/80001/components/data_reduction_proxy.gypi#newcode143 components/data_reduction_proxy.gypi:143: 'data_reduction_proxy/core/common/client_config_parser.cc', Why no drp prefix?
5 years, 9 months ago (2015-03-23 21:59:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017853003/100001
5 years, 9 months ago (2015-03-24 03:45:19 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-24 04:08:49 UTC) #10
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/97652ebe50c4be712aa976776bee9694cbce1178 Cr-Commit-Position: refs/heads/master@{#321931}
5 years, 9 months ago (2015-03-24 04:10:20 UTC) #11
Matt Giuca
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1020863009/ by mgiuca@chromium.org. ...
5 years, 9 months ago (2015-03-24 05:14:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017853003/120001
5 years, 9 months ago (2015-03-24 17:17:05 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-24 17:21:49 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 17:22:27 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9e0b2ffcac69765ab045fd6878301a8b4ea189ee
Cr-Commit-Position: refs/heads/master@{#322021}

Powered by Google App Engine
This is Rietveld 408576698