extension_specifics.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 extensions.
  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 extension sync objects.
  14. //
  15. // Merge policy: the settings for the higher version number win; in
  16. // the case of a tie, server wins.
  17. message ExtensionSpecifics {
  18. // Globally unique id for this extension.
  19. optional string id = 1;
  20. // The known installed version.
  21. optional string version = 2;
  22. // Auto-update URL to use for this extension. May be blank, in
  23. // which case the default one (i.e., the one for the Chrome
  24. // Extensions Gallery) is used.
  25. optional string update_url = 3;
  26. // Whether or not this extension is enabled.
  27. optional bool enabled = 4;
  28. // Whether or not this extension is enabled in incognito mode.
  29. optional bool incognito_enabled = 5;
  30. // DEPRECATED. See https://crbug.com/1233303.
  31. optional string name = 6 [deprecated = true];
  32. // Whether this extension was installed remotely, and hasn't been approved by
  33. // a user in chrome yet.
  34. optional bool remote_install = 7;
  35. // DEPRECATED. See https://crbug.com/1014183.
  36. optional bool installed_by_custodian = 8 [deprecated = true];
  37. // DEPRECATED. See https://crbug.com/839681.
  38. optional bool all_urls_enabled = 9 [deprecated = true];
  39. // Bitmask of the set of reasons why the extension is disabled (see
  40. // extensions::disable_reason::DisableReason). Only relevant when enabled ==
  41. // false. Note that old clients (<M45) won't set this, even when enabled is
  42. // false.
  43. optional int32 disable_reasons = 10;
  44. }