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

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

Issue 2300093002: Make //content responsible for generating notification Ids (Closed)
Patch Set: 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 // DEPRECATED: Use |notification_id| instead.
17 optional int64 persistent_notification_id = 1;
18
19 optional string notification_id = 5;
17 20
18 optional string origin = 2; 21 optional string origin = 2;
19 optional int64 service_worker_registration_id = 3; 22 optional int64 service_worker_registration_id = 3;
20 23
21 // A notification action, corresponds to content::PlatformNotificationAction. 24 // A notification action, corresponds to content::PlatformNotificationAction.
22 // 25 //
23 // Next tag: 6 26 // Next tag: 6
24 message NotificationAction { 27 message NotificationAction {
25 // Corresponds to PlatformNotificationActionType. 28 // Corresponds to PlatformNotificationActionType.
26 enum Type { 29 enum Type {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 optional int64 timestamp = 12; 61 optional int64 timestamp = 12;
59 optional bool renotify = 13; 62 optional bool renotify = 13;
60 optional bool silent = 7; 63 optional bool silent = 7;
61 optional bool require_interaction = 11; 64 optional bool require_interaction = 11;
62 optional bytes data = 8; 65 optional bytes data = 8;
63 repeated NotificationAction actions = 10; 66 repeated NotificationAction actions = 10;
64 } 67 }
65 68
66 optional NotificationData notification_data = 4; 69 optional NotificationData notification_data = 4;
67 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698