Introduce a Doodle Fetcher for NTP

Desktop / Chromium - fhorschig [chromium.org] - 16 February 2017 09:28 EST

This fetcher queries the standard Doodle endpoint [1] and converts the config into a struct. Attributes are checked for sanity and converted into fitting formats (e.g. expiry_date based on TTL value).

[1] www.google.com/async/ddljson.

BUG=690467

Review-Url: https://codereview.chromium.org/2660883002 Cr-Commit-Position: refs/heads/master@{#450954}

5ba57aa Introduce a Doodle Fetcher for NTP
components/BUILD.gn | 1 +
components/doodle/BUILD.gn | 30 ++
components/doodle/DEPS | 6 +
components/doodle/OWNERS | 1 +
components/doodle/doodle_fetcher.cc | 240 +++++++++++++++
components/doodle/doodle_fetcher.h | 162 ++++++++++
components/doodle/doodle_fetcher_unittest.cc | 425 +++++++++++++++++++++++++++
7 files changed, 865 insertions(+)

Upstream: git.chromium.org


  • Share