OLD | NEW |
| (Empty) |
1 // Copyright 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 #ifndef SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ | |
6 #define SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "base/time/time.h" | |
11 #include "sync/base/sync_export.h" | |
12 | |
13 namespace syncer { | |
14 | |
15 // Container for datatype association results. | |
16 struct SYNC_EXPORT DataTypeAssociationStats { | |
17 DataTypeAssociationStats(); | |
18 DataTypeAssociationStats(const DataTypeAssociationStats& other); | |
19 ~DataTypeAssociationStats(); | |
20 | |
21 // The state of the world before association. | |
22 int num_local_items_before_association; | |
23 int num_sync_items_before_association; | |
24 | |
25 // The state of the world after association. | |
26 int num_local_items_after_association; | |
27 int num_sync_items_after_association; | |
28 | |
29 // The changes that took place during association. In a correctly working | |
30 // system these should be the deltas between before and after. | |
31 int num_local_items_added; | |
32 int num_local_items_deleted; | |
33 int num_local_items_modified; | |
34 int num_sync_items_added; | |
35 int num_sync_items_deleted; | |
36 int num_sync_items_modified; | |
37 | |
38 // Model versions before association. | |
39 int64_t local_version_pre_association; | |
40 int64_t sync_version_pre_association; | |
41 | |
42 // Whether a datatype unrecoverable error was encountered during association. | |
43 bool had_error; | |
44 | |
45 // Waiting time within association manager for loading local models and | |
46 // associating other types. | |
47 base::TimeDelta association_wait_time; | |
48 | |
49 // Time spent on association. | |
50 base::TimeDelta association_time; | |
51 }; | |
52 | |
53 } // namespace syncer | |
54 | |
55 #endif // SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ | |
OLD | NEW |