summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/examples/android2/example_listener.proto
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/examples/android2/example_listener.proto')
-rw-r--r--chromium/third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/examples/android2/example_listener.proto31
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/examples/android2/example_listener.proto b/chromium/third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/examples/android2/example_listener.proto
new file mode 100644
index 00000000000..e9a01ba8f2c
--- /dev/null
+++ b/chromium/third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/examples/android2/example_listener.proto
@@ -0,0 +1,31 @@
+syntax = "proto2";
+package ipc.invalidation.examples.android2;
+option java_package = "com.google.ipc.invalidation.examples.android2";
+option java_outer_classname = "ExampleListenerProto";
+option optimize_for = LITE_RUNTIME;
+
+// Persistent state for the example listener.
+message ExampleListenerStateProto {
+
+ message ObjectIdProto {
+ optional int32 source = 1;
+ optional bytes name = 2;
+ }
+
+ // State related to a particular object being tracked by the listener. See
+ // ExampleListenerState#ObjectState for information on fields.
+ message ObjectStateProto {
+ optional ObjectIdProto object_id = 1;
+ optional bool is_registered = 2;
+ optional bytes payload = 3;
+ optional int64 highest_version = 4;
+ optional int64 invalidation_time_millis = 5;
+ optional bool is_background = 6;
+ }
+
+ // List of objects for which state is being tracked.
+ repeated ObjectStateProto object_state = 1;
+
+ // (Optional) client id passed to the listener in ready() call.
+ optional bytes client_id = 2;
+}