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 // All timestamps below are from Sane Time ( | |
| 18 // http://www.chromium.org/developers/design-documents/sane-time ) | |
| 19 // and are in microseconds since the Unix epoch. | |
| 20 | |
| 21 // Properties of history delete directive sync objects. | |
| 22 message HistoryDeleteDirectiveSpecifics { | |
| 23 // Exactly one of the fields below must be filled in. Otherwise, this | |
| 24 // delete directive must be ignored. | |
| 25 optional GlobalIdDirective global_id_directive = 1; | |
| 26 optional TimeRangeDirective time_range_directive = 2; | |
| 27 optional EverythingDirective everything_directive = 3; | |
| 28 } | |
| 29 | |
| 30 message GlobalIdDirective { | |
| 31 // The global IDs of the navigations to delete. | |
| 32 repeated int64 global_id = 1; | |
| 33 } | |
| 34 | |
| 35 message TimeRangeDirective { | |
| 36 // Both fields below must be filled in. Otherwise, this delete directive | |
| 37 // must be ignored. | |
| 38 | |
| 39 // The time on or after which entries must be deleted. | |
| 40 optional int64 start_time_usec = 1; | |
| 41 // The time on or before which entries must be deleted. | |
| 42 optional int64 end_time_usec = 2; | |
| 43 } | |
| 44 | |
| 45 message EverythingDirective { | |
| 46 // The field below must be filled in and set to true. Otherwise, this | |
| 47 // delete directive must be ignored. | |
| 48 optional bool delete_everything = 3 [default = false]; | |
|
Nicolas Zea
2012/10/15 19:03:57
does this need a timestamp? Otherwise a client mig
akalin
2012/10/15 20:21:21
We'd have to make it so that the client keeps trac
| |
| 49 } | |
| OLD | NEW |