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

Unified Diff: third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto

Issue 1162033004: Pull cacheinvalidations code directory into chromium repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto
diff --git a/third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto b/third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto
new file mode 100644
index 0000000000000000000000000000000000000000..bb6d91e64d86315d9a057c1ccaff1585aa1af732
--- /dev/null
+++ b/third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto
@@ -0,0 +1,30 @@
+syntax = "proto2";
+package ipc.invalidation.examples.android2;
+option java_package = "com.google.ipc.invalidation.examples.android2";
+option java_outer_classname = "ExampleListenerProto";
+
+// 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;
+}

Powered by Google App Engine
This is Rietveld 408576698