history_delete_directive_specifics.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. // Sync protocol datatype extension for history delete directives.
  6. // If you change or add any fields in this file, update proto_visitors.h and
  7. // potentially proto_enum_conversions.{h, cc}.
  8. syntax = "proto2";
  9. option java_multiple_files = true;
  10. option java_package = "org.chromium.components.sync.protocol";
  11. option optimize_for = LITE_RUNTIME;
  12. package sync_pb;
  13. // All timestamps below are from Sane Time (
  14. // http://www.chromium.org/developers/design-documents/sane-time )
  15. // and are in microseconds since the Unix epoch.
  16. // Properties of history delete directive sync objects.
  17. message HistoryDeleteDirectiveSpecifics {
  18. // Exactly one of the fields below must be filled in. Otherwise, this
  19. // delete directive must be ignored.
  20. optional GlobalIdDirective global_id_directive = 1;
  21. optional TimeRangeDirective time_range_directive = 2;
  22. optional UrlDirective url_directive = 3;
  23. }
  24. message GlobalIdDirective {
  25. // The global IDs of the navigations to delete.
  26. repeated int64 global_id = 1;
  27. // Time range for searching for navigations to delete. Client should delete
  28. // all navigations to a URL between [start_time_usec, end_time_usec]
  29. // if one of them matches a |global_id|.
  30. optional int64 start_time_usec = 2;
  31. optional int64 end_time_usec = 3;
  32. }
  33. message TimeRangeDirective {
  34. // Both fields below must be filled in. Otherwise, this delete directive
  35. // must be ignored.
  36. // The time on or after which entries must be deleted.
  37. optional int64 start_time_usec = 1;
  38. // The time on or before which entries must be deleted.
  39. optional int64 end_time_usec = 2;
  40. }
  41. message UrlDirective {
  42. // Both fields below must be filled in. Otherwise, this delete directive
  43. // must be ignored.
  44. // The URL that should be removed from history.
  45. optional string url = 1;
  46. // The time on or before which entries must be deleted.
  47. // In microseconds since the Unix epoch.
  48. optional int64 end_time_usec = 2;
  49. }