OLD | NEW |
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 } |
OLD | NEW |