Implement the AMP URL conversion scheme

Desktop / Chromium - rajendrant [chromium.org] - 11 September 2017 15:22 EDT

Checks whether an URL is whitelisted for AMP redirection previews and implements the scheme used to convert URL to its AMP version.

Bug: 745942 Change-Id: Ic97eb4501e8d7daac041d76b8483fdf704124e28 Reviewed-on: https://chromium-review.googlesource.com/609465

a79bd30 Implement the AMP URL conversion scheme
components/previews/core/BUILD.gn | 4 +
components/previews/core/DEPS | 3 +-
components/previews/core/previews_amp_converter.cc | 183 ++++++++++++++
components/previews/core/previews_amp_converter.h | 44 ++++
.../core/previews_amp_converter_unittest.cc | 278 +++++++++++++++++++++
5 files changed, 511 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share