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.
7 option optimize_for = LITE_RUNTIME;
11 // Stores information about a Web Notification. This message is the protocol
12 // buffer meant to serialize the content::NotificationDatabaseData structure.
15 message NotificationDatabaseDataProto {
16 optional int64 notification_id = 1;
18 optional string origin = 2;
19 optional int64 service_worker_registration_id = 3;
21 // Actual data payload of the notification. This message is the protocol
22 // buffer meant to serialize the content::PlatformNotificationData structure.
25 message NotificationData {
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 optional bytes data = 8;
41 optional NotificationData notification_data = 4;