Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 push notifications.. | 5 // Sync protocol datatype extension for push notifications.. |
| 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"; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 optional string type = 1; | 56 optional string type = 1; |
| 57 | 57 |
| 58 // Whatever string the client entered during creation. If no external_id is | 58 // Whatever string the client entered during creation. If no external_id is |
| 59 // specified, the notification can no longer be identified individually for | 59 // specified, the notification can no longer be identified individually for |
| 60 // fetching/deleting, etc... | 60 // fetching/deleting, etc... |
| 61 optional string external_id = 2; | 61 optional string external_id = 2; |
| 62 | 62 |
| 63 // The creator of the notification. | 63 // The creator of the notification. |
| 64 optional SyncedNotificationCreator creator = 3; | 64 optional SyncedNotificationCreator creator = 3; |
| 65 | 65 |
| 66 // TODO(petewil): This won't build. Import the relevant protobuf. | 66 // Client specific data. |
| 67 // optional MapData client_data = 4; | 67 optional MapData client_data = 4; |
| 68 } | 68 } |
| 69 | 69 |
| 70 message CoalescedSyncedNotification { | 70 message CoalescedSyncedNotification { |
| 71 // An opaque string key used to identify individual coalesced notifications. | 71 // An opaque string key used to identify individual coalesced notifications. |
| 72 optional string key = 1; | 72 optional string key = 1; |
| 73 | 73 |
| 74 optional string app_id = 2; | 74 optional string app_id = 2; |
| 75 | 75 |
| 76 // All the notifications that are grouped together. | 76 // All the notifications that are grouped together. |
| 77 repeated SyncedNotification notification = 3; | 77 repeated SyncedNotification notification = 3; |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 96 LOW = 1; | 96 LOW = 1; |
| 97 STANDARD = 2; | 97 STANDARD = 2; |
| 98 HIGH = 3; | 98 HIGH = 3; |
| 99 // We will most likely add at least one more priority in the near future. | 99 // We will most likely add at least one more priority in the near future. |
| 100 }; | 100 }; |
| 101 optional Priority priority = 7; | 101 optional Priority priority = 7; |
| 102 } | 102 } |
| 103 | 103 |
| 104 message SyncedNotificationList { | 104 message SyncedNotificationList { |
| 105 repeated CoalescedSyncedNotification coalesced_notification = 1; | 105 repeated CoalescedSyncedNotification coalesced_notification = 1; |
| 106 } | 106 } |
| 107 | |
| 108 message MapData { | |
|
Nicolas Zea
2013/03/28 17:43:41
Could you comment what this, MapData, and ListData
Pete Williamson
2013/03/28 19:59:00
Done.
| |
| 109 message Entry { | |
| 110 optional string key = 1; | |
| 111 optional Data value = 2; | |
| 112 }; | |
| 113 repeated Entry entry = 1; | |
| 114 }; | |
| 115 | |
| 116 message Data { | |
| 117 optional bool boolean_value = 1; | |
| 118 optional int32 int_value = 2; | |
| 119 optional double float_value = 3; | |
| 120 optional string string_value = 4; | |
| 121 optional ListData list_value = 5; | |
| 122 optional MapData map_value = 6; | |
| 123 }; | |
| 124 | |
| 125 message ListData { | |
| 126 repeated Data value = 1; | |
| 127 }; | |
| OLD | NEW |