Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // Sync protocol datatype extension for history delete directives. | |
| 6 | |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | |
| 8 // any fields in this file. | |
| 9 | |
| 10 syntax = "proto2"; | |
| 11 | |
| 12 option optimize_for = LITE_RUNTIME; | |
| 13 option retain_unknown_fields = true; | |
| 14 | |
| 15 package sync_pb; | |
| 16 | |
| 17 // Properties of history delete directive sync objects. | |
| 18 message HistoryDeleteDirectiveSpecifics { | |
| 19 // 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
| |
| 20 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.
| |
| 21 // 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.
| |
| 22 optional string client_id = 2; | |
| 23 | |
| 24 // All timestamps below are based on the clock for the client with the ID | |
| 25 // 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.
| |
| 26 | |
| 27 // The time at which this directive was created. | |
| 28 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.
| |
| 29 // 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.
| |
| 30 optional int64 start_time = 4; | |
| 31 // The time on or before which entries with the URL above should be deleted. | |
| 32 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.
| |
| 33 } | |
| OLD | NEW |