fixed_logo_api.h 921 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SEARCH_PROVIDER_LOGOS_FIXED_LOGO_API_H_
  5. #define COMPONENTS_SEARCH_PROVIDER_LOGOS_FIXED_LOGO_API_H_
  6. #include <memory>
  7. #include <string>
  8. #include "base/time/time.h"
  9. class GURL;
  10. namespace search_provider_logos {
  11. struct EncodedLogo;
  12. // Implements AppendQueryparamsToLogoURL, defined in logo_common.h,
  13. // for static logos.
  14. GURL UseFixedLogoUrl(const GURL& logo_url, const std::string& fingerprint);
  15. // Implements ParseLogoResponse, defined in logo_common.h,
  16. // for static logos.
  17. std::unique_ptr<EncodedLogo> ParseFixedLogoResponse(
  18. std::unique_ptr<std::string> response,
  19. base::Time response_time,
  20. bool* parsing_failed);
  21. } // namespace search_provider_logos
  22. #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_FIXED_LOGO_API_H_