diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 03:06:03 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 03:06:03 +0000 |
commit | d643f414a8d6942e7c79c2e71f6c717da5fe3106 (patch) | |
tree | 0bf91efd58db9134b04dc9ae4f0259443fa284a9 /chrome/browser/sync/protocol | |
parent | 83612103b1b205d2456049ed4c5bde50af70fb2e (diff) | |
download | chromium_src-d643f414a8d6942e7c79c2e71f6c717da5fe3106.zip chromium_src-d643f414a8d6942e7c79c2e71f6c717da5fe3106.tar.gz chromium_src-d643f414a8d6942e7c79c2e71f6c717da5fe3106.tar.bz2 |
Added specifics protocol buffer for extensions sync.
BUG=32413
TEST=trybots
Review URL: http://codereview.chromium.org/2762002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/protocol')
-rw-r--r-- | chrome/browser/sync/protocol/extension_specifics.proto | 40 | ||||
-rwxr-xr-x | chrome/browser/sync/protocol/sync_proto.gyp | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/chrome/browser/sync/protocol/extension_specifics.proto b/chrome/browser/sync/protocol/extension_specifics.proto new file mode 100644 index 0000000..8be29f1 --- /dev/null +++ b/chrome/browser/sync/protocol/extension_specifics.proto @@ -0,0 +1,40 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Sync protocol datatype extension for extensions. + +syntax = "proto2"; + +option optimize_for = LITE_RUNTIME; + +package sync_pb; + +import "sync.proto"; + +// Properties of extension sync objects. +// +// Merge policy: the settings for the higher version number win; in +// the case of a tie, server wins. +message ExtensionSpecifics { + // Globally unique id for this extension. + optional string id = 1; + // The known installed version. + optional string version = 2; + + // Auto-update URL to use for this extension. May be blank, in + // which case the default one (i.e., the one for the Chrome + // Extensions Gallery) is used. + optional string update_url = 3; + // Whether or not this extension is enabled. + optional bool enabled = 4; + // Whether or not this extension is enabled in incognito mode. + optional bool incognito_enabled = 5; + + // The name of the extension. Used only for debugging. + optional string name = 6; +} + +extend EntitySpecifics { + optional ExtensionSpecifics extension = 48119; +} diff --git a/chrome/browser/sync/protocol/sync_proto.gyp b/chrome/browser/sync/protocol/sync_proto.gyp index 5c3e2be..c80e7d2 100755 --- a/chrome/browser/sync/protocol/sync_proto.gyp +++ b/chrome/browser/sync/protocol/sync_proto.gyp @@ -16,6 +16,7 @@ 'sync.proto', 'autofill_specifics.proto', 'bookmark_specifics.proto', + 'extension_specifics.proto', 'password_specifics.proto', 'preference_specifics.proto', 'theme_specifics.proto', |