summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/sync/protocol/extension_specifics.proto40
-rwxr-xr-xchrome/browser/sync/protocol/sync_proto.gyp1
-rw-r--r--chrome/chrome.gyp2
3 files changed, 43 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',
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index a1800d3f..c4d2430 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -794,6 +794,8 @@
'<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.h',
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.cc',
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb.cc',