Add ClientConfig proto, and JSON generation/parsing.
commit97652ebe50c4be712aa976776bee9694cbce1178
authorjeremyim <jeremyim@chromium.org>
Tue, 24 Mar 2015 04:08:35 +0000 (23 21:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 24 Mar 2015 04:10:06 +0000 (24 04:10 +0000)
tree7c760d71d3b692a0729378fe64588654cdcea0a1
parenta34e151bce4bdf56031c13941408e292815241ca
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

Review URL: https://codereview.chromium.org/1017853003

Cr-Commit-Position: refs/heads/master@{#321931}
20 files changed:
components/components_tests.gyp
components/data_reduction_proxy.gypi
components/data_reduction_proxy/core/browser/BUILD.gn
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc [new file with mode: 0644]
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h [new file with mode: 0644]
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc [new file with mode: 0644]
components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options_unittest.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
components/data_reduction_proxy/core/common/BUILD.gn
components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.cc [new file with mode: 0644]
components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.h [new file with mode: 0644]
components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser_unittest.cc [new file with mode: 0644]
components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
components/data_reduction_proxy/proto/BUILD.gn [new file with mode: 0644]
components/data_reduction_proxy/proto/client_config.proto [new file with mode: 0644]