typed_url_specifics.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 typed urls.
  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. // Properties of typed_url sync objects - fields correspond to similarly named
  14. // fields in history::URLRow.
  15. message TypedUrlSpecifics {
  16. // Actual URL that was typed.
  17. optional string url = 1;
  18. // Title of the page corresponding to this URL.
  19. optional string title = 2;
  20. // The number of times this URL was typed. Deprecated since we no longer sync
  21. // this information (it's inferred by the history code from the transition
  22. // type for each visit).
  23. // optional int32 typed_count = 3; (deprecated)
  24. // True if the URL should NOT be used for auto-complete.
  25. optional bool hidden = 4;
  26. // The number of visits (includes page reloads).
  27. // repeated int64 visit = 5; (deprecated)
  28. // The number of explicit navigations to this URL (excludes page reloads) -
  29. // deprecated as we no longer sync this (history code infers this from the
  30. // |visits| array).
  31. // optional int32 visited_count = 6; (deprecated)
  32. // Timestamps for all visits to this URL.
  33. repeated int64 visits = 7 [packed = true];
  34. // The PageTransition::Type for each of the visits in the |visit| array. Both
  35. // arrays must be the same length.
  36. repeated int32 visit_transitions = 8 [packed = true];
  37. }