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

Unified Diff: sync/protocol/synced_notification_app_info_specifics.proto

Issue 143973006: New Sync datatype for Synced Notifications App Info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: AppInfo: Rename fields in protobuf to match code better. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: sync/protocol/synced_notification_app_info_specifics.proto
diff --git a/sync/protocol/synced_notification_app_info_specifics.proto b/sync/protocol/synced_notification_app_info_specifics.proto
new file mode 100644
index 0000000000000000000000000000000000000000..22bb4d259d06741986d17eb24753b7f37953c476
--- /dev/null
+++ b/sync/protocol/synced_notification_app_info_specifics.proto
@@ -0,0 +1,34 @@
+// Copyright 2014 Google Inc. All Rights Reserved.
+//
+// Sync protocol datatype extension for appInfo objects.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+option retain_unknown_fields = true;
+
+package sync_pb;
+
+import "synced_notification_render.proto";
+
+message SyncedNotificationAppInfoSpecifics {
+ // Information of the list of apps we know about.
+ // NOTE: This may not be the comprehensive list of apps that send
+ // notifications. At best, it will contain all the first party apps and
+ // paging support is not needed.
+ // This is a static list sent from the server that is read only on the client.
+ repeated SyncedNotificationAppInfo synced_notification_app_info = 1;
+}
+
+message SyncedNotificationAppInfo {
+ // The application ID of a subservice within the notification sending service.
+ repeated string app_id = 1;
+
+ // The name to use in the settings screen for this app.
+ optional string settings_display_name = 2;
+
+ // The icon to use. The URL of the icon may point to a
+ // hi-res image, so clients should always size the image to the
+ // preferred width and height specified in the Image proto.
+ optional SyncedNotificationImage icon = 3;
+}

Powered by Google App Engine
This is Rietveld 408576698