favicon_usage_data.h 872 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2013 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_FAVICON_BASE_FAVICON_USAGE_DATA_H_
  5. #define COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_
  6. #include <set>
  7. #include <vector>
  8. #include "url/gurl.h"
  9. namespace favicon_base {
  10. // Used to correlate favicons to imported bookmarks.
  11. struct FaviconUsageData {
  12. FaviconUsageData();
  13. FaviconUsageData(const FaviconUsageData& other);
  14. ~FaviconUsageData();
  15. // The URL of the favicon.
  16. GURL favicon_url;
  17. // The raw png-encoded data.
  18. std::vector<unsigned char> png_data;
  19. // The list of URLs using this favicon.
  20. std::set<GURL> urls;
  21. };
  22. typedef std::vector<FaviconUsageData> FaviconUsageDataList;
  23. } // namespace favicon_base
  24. #endif // COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_