summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/protocol
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 20:04:05 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 20:04:05 +0000
commit60cab460a9f891d34efacddd3efc10d89279b6d6 (patch)
tree5edbf5cafb368c09a386bf3dcf122077d067c396 /chrome/browser/sync/protocol
parentc5e401ad5812699fafaf41492015eb26174084ed (diff)
downloadchromium_src-60cab460a9f891d34efacddd3efc10d89279b6d6.zip
chromium_src-60cab460a9f891d34efacddd3efc10d89279b6d6.tar.gz
chromium_src-60cab460a9f891d34efacddd3efc10d89279b6d6.tar.bz2
Implemented initial version of themes syncing (behind a flag).
BUG=32414 TEST=manual,unittests,trybot Review URL: http://codereview.chromium.org/1399001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/protocol')
-rw-r--r--chrome/browser/sync/protocol/theme_specifics.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/sync/protocol/theme_specifics.proto b/chrome/browser/sync/protocol/theme_specifics.proto
new file mode 100644
index 0000000..89af3a0
--- /dev/null
+++ b/chrome/browser/sync/protocol/theme_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 themes.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package sync_pb;
+
+import "sync.proto";
+
+// Properties of theme sync objects.
+message ThemeSpecifics {
+ // If set, we're using a custom theme and all custom_* fields should be
+ // present. If not set, we use the default or system theme (see below)
+ // and all custom_* fields should be omitted.
+ optional bool use_custom_theme = 1;
+ // This field is only set (i.e., not cleared) on platforms that have
+ // a distinction between the system theme and the default theme, but
+ // other platforms must be careful to pass through the set state (not
+ // just the value) of this flag.
+ //
+ // If true, we use the system theme by default (i.e., when we don't use
+ // a custom theme) for platforms that make a distinction between the
+ // default theme and the system theme. Has no effect if use_custom_theme
+ // is set.
+ optional bool use_system_theme_by_default = 2;
+
+ // Custom-theme-specific fields.
+ optional string custom_theme_name = 3;
+ optional string custom_theme_id = 4;
+ optional string custom_theme_update_url = 5;
+}
+
+extend EntitySpecifics {
+ optional ThemeSpecifics theme = 41210;
+}