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

Side by Side Diff: content/browser/notifications/notification_database_data.proto

Issue 2300093002: Make //content responsible for generating notification Ids (Closed)
Patch Set: rebase + comments Created 4 years, 3 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package content; 9 package content;
10 10
11 // Stores information about a Web Notification. This message is the protocol 11 // Stores information about a Web Notification. This message is the protocol
12 // buffer meant to serialize the content::NotificationDatabaseData structure. 12 // buffer meant to serialize the content::NotificationDatabaseData structure.
13 // 13 //
14 // Next tag: 5 14 // Next tag: 6
15 message NotificationDatabaseDataProto { 15 message NotificationDatabaseDataProto {
16 optional int64 notification_id = 1; 16 optional string notification_id = 5;
17 17
18 optional string origin = 2; 18 optional string origin = 2;
19 optional int64 service_worker_registration_id = 3; 19 optional int64 service_worker_registration_id = 3;
20 20
21 // A notification action, corresponds to content::PlatformNotificationAction. 21 // A notification action, corresponds to content::PlatformNotificationAction.
22 // 22 //
23 // Next tag: 6 23 // Next tag: 6
24 message NotificationAction { 24 message NotificationAction {
25 // Corresponds to PlatformNotificationActionType. 25 // Corresponds to PlatformNotificationActionType.
26 enum Type { 26 enum Type {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 optional int64 timestamp = 12; 58 optional int64 timestamp = 12;
59 optional bool renotify = 13; 59 optional bool renotify = 13;
60 optional bool silent = 7; 60 optional bool silent = 7;
61 optional bool require_interaction = 11; 61 optional bool require_interaction = 11;
62 optional bytes data = 8; 62 optional bytes data = 8;
63 repeated NotificationAction actions = 10; 63 repeated NotificationAction actions = 10;
64 } 64 }
65 65
66 optional NotificationData notification_data = 4; 66 optional NotificationData notification_data = 4;
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698