Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 syntax = "proto2"; | |
| 6 | |
| 7 option optimize_for = LITE_RUNTIME; | |
| 8 | |
| 9 package content; | |
| 10 | |
| 11 // Stores information about a Web Notification. This message is the protocol | |
| 12 // buffer meant to serialize the content::NotificationDatabaseData structure. | |
| 13 // | |
| 14 // Next tag: 5 | |
| 15 message NotificationDatabaseDataProto { | |
| 16 required int64 notification_id = 1; | |
|
Bernhard Bauer
2015/03/12 18:11:14
Making this required does contradict the statement
Peter Beverloo
2015/03/12 21:09:52
Done.
Bernhard Bauer
2015/03/13 12:27:19
Note that I'm okay with keeping it required: the r
| |
| 17 | |
| 18 optional string origin = 2; | |
| 19 optional int64 service_worker_registration_id = 3; | |
| 20 | |
| 21 // Actual data payload of the notification. This message is the protocol | |
| 22 // buffer meant to serialize the content::PlatformNotificationData structure. | |
| 23 // | |
| 24 // Next tag: 8 | |
| 25 message NotificationData { | |
| 26 enum Direction { | |
| 27 LEFT_TO_RIGHT = 0; | |
| 28 RIGHT_TO_LEFT = 1; | |
| 29 } | |
| 30 | |
| 31 optional string title = 1; | |
| 32 optional Direction direction = 2; | |
| 33 optional string lang = 3; | |
| 34 optional string body = 4; | |
| 35 optional string tag = 5; | |
| 36 optional string icon = 6; | |
| 37 optional bool silent = 7; | |
| 38 } | |
| 39 | |
| 40 optional NotificationData notification_data = 4; | |
| 41 } | |
| OLD | NEW |