Index: sync/protocol/history_delete_directive_specifics.proto |
diff --git a/sync/protocol/history_delete_directive_specifics.proto b/sync/protocol/history_delete_directive_specifics.proto |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9806f1116f98f31b0831cd81c72e6fa8413a648f |
--- /dev/null |
+++ b/sync/protocol/history_delete_directive_specifics.proto |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+// |
+// Sync protocol datatype extension for history delete directives. |
+ |
+// Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
+// any fields in this file. |
+ |
+syntax = "proto2"; |
+ |
+option optimize_for = LITE_RUNTIME; |
+option retain_unknown_fields = true; |
+ |
+package sync_pb; |
+ |
+// Properties of history delete directive sync objects. |
+message HistoryDeleteDirectiveSpecifics { |
+ // The full URL to delete. |
Nicolas Zea
2012/08/08 01:26:19
I think something like "If present, only those his
akalin
2012/08/08 22:54:20
Just to be clear, if it's not present (empty or in
Nicolas Zea
2012/08/08 23:18:55
Right, it means we're deleting all url's across th
akalin
2012/10/10 01:22:55
As discussed, we don't need the URL anymore. Repl
|
+ optional string url = 1; |
albertb
2012/08/09 12:44:11
I find it slightly scary that if none of the field
akalin
2012/10/10 01:22:55
Done. Define an EverythingDirective.
|
+ // The ID of the client from which to delete the URL above. |
Nicolas Zea
2012/08/08 01:26:19
mention that if empty, the server consumes this de
akalin
2012/08/08 22:54:20
hmm, i see.
|
+ optional string client_id = 2; |
+ |
+ // All timestamps below are based on the clock for the client with the ID |
+ // above. |
Nicolas Zea
2012/08/08 01:26:19
or the server timestamp if message is going to ser
akalin
2012/08/08 22:54:20
Perhaps we should have a source_id, target_id, and
Nicolas Zea
2012/08/08 23:18:55
Well, it's always the destination's clock. Perhaps
albertb
2012/08/09 12:44:11
Why do the server-to-client clock translation in t
akalin
2012/10/10 01:22:55
I think using sane time handles this.
|
+ |
+ // The time at which this directive was created. |
+ optional int64 creation_time = 3; |
albertb
2012/08/09 12:44:11
What is this for? And since (afaiu) HistoryDeleteD
Raz Mathias
2012/10/02 19:26:23
Please postfix _usec or _millis
akalin
2012/10/10 01:22:55
Removed.
|
+ // The time on or after which entries with the URL above should be deleted. |
albertb
2012/08/09 12:44:11
The unit should be specified. I'm assuming this is
Raz Mathias
2012/10/02 19:26:23
Yes, seconded. Please name the field start_time_u
akalin
2012/10/10 01:22:55
Done.
|
+ optional int64 start_time = 4; |
+ // The time on or before which entries with the URL above should be deleted. |
+ optional int64 end_time = 5; |
Raz Mathias
2012/10/02 19:26:23
Please postfix _usec or _millis
akalin
2012/10/10 01:22:55
Done.
|
+} |