Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/sync/protocol/app_specifics.proto

Issue 8399022: Add a couple of notifications related settings to app/extensions sync: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Sync protocol datatype extension for apps. 5 // Sync protocol datatype extension for apps.
6 6
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
8 // any fields in this file. 8 // any fields in this file.
9 9
10 syntax = "proto2"; 10 syntax = "proto2";
11 11
12 option optimize_for = LITE_RUNTIME; 12 option optimize_for = LITE_RUNTIME;
13 option retain_unknown_fields = true; 13 option retain_unknown_fields = true;
14 14
15 package sync_pb; 15 package sync_pb;
16 16
17 import "sync.proto"; 17 import "sync.proto";
18 import "extension_specifics.proto"; 18 import "extension_specifics.proto";
19 19
20 // Settings related to push notifications for apps.
21 message AppNotificationSettings {
22 // Whether or not the user has setup notifications at least once.
23 // The value for this field will start out false and will be set
24 // to true when the user accepts receiving notifications for the
25 // first time and then it will always remain true.
26 optional bool initial_setup_done = 1;
27
28 // Whether or not the user has disabled notifications.
29 optional bool disabled = 2;
30 }
31
20 // Properties of app sync objects. 32 // Properties of app sync objects.
21 // 33 //
22 // For now, an app is just an extension. We keep the two data types 34 // For now, an app is just an extension. We keep the two data types
23 // separate for future-proofing purposes. 35 // separate for future-proofing purposes.
24 message AppSpecifics { 36 message AppSpecifics {
25 // Extension data. 37 // Extension data.
26 optional ExtensionSpecifics extension = 1; 38 optional ExtensionSpecifics extension = 1;
39
40 // Notification settings.
41 optional AppNotificationSettings notification_settings = 2;
27 } 42 }
28 43
29 extend EntitySpecifics { 44 extend EntitySpecifics {
30 optional AppSpecifics app = 48364; 45 optional AppSpecifics app = 48364;
31 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698