favicon_image_specifics.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright (c) 2012 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. //
  5. // DEPRECATED: This data type is no longer synced.
  6. // TODO(crbug.com/978775): Remove once the file is no longer used by the server.
  7. // Sync protocol datatype extension for the favicon image specifics.
  8. // If you change or add any fields in this file, update proto_visitors.h and
  9. // potentially proto_enum_conversions.{h, cc}.
  10. syntax = "proto2";
  11. option java_multiple_files = true;
  12. option java_package = "org.chromium.components.sync.protocol";
  13. option optimize_for = LITE_RUNTIME;
  14. package sync_pb;
  15. message FaviconData {
  16. // The image data for the favicon (PNG encoded).
  17. optional bytes favicon = 1;
  18. // The favicon dimensions.
  19. optional int32 width = 2;
  20. optional int32 height = 3;
  21. }
  22. // Image data for favicons. Multiple resolutions are supported.
  23. message FaviconImageSpecifics {
  24. // The url of the favicon image.
  25. optional string favicon_url = 1;
  26. // The favicons associated with this source, one per scale type.
  27. // Favicons images should be stored into the field that best corresponds to
  28. // their scale. If multiple favicons are appropriate, the highest resolution
  29. // that doesn't violate the maximum should be stored.
  30. // A normal low-resolution web favicon (max resolution 16x16).
  31. optional FaviconData favicon_web = 2;
  32. // A slightly higher-resolution web favicon (max resolution 32x32).
  33. optional FaviconData favicon_web_32 = 3;
  34. // A high-resolution touch favicon (not precomposed, max resolution 64x64).
  35. optional FaviconData favicon_touch_64 = 4;
  36. // A high-resolution touch favicon (precomposed, max resolution 64x64).
  37. optional FaviconData favicon_touch_precomposed_64 = 5;
  38. }