OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ |
7 | 7 |
| 8 #include "sync/base/sync_export.h" |
8 #include "sync/internal_api/public/base/model_type.h" | 9 #include "sync/internal_api/public/base/model_type.h" |
9 | 10 |
10 namespace syncer { | 11 namespace syncer { |
11 | 12 |
12 // Container for datatype association results. | 13 // Container for datatype association results. |
13 struct DataTypeAssociationStats { | 14 struct SYNC_EXPORT DataTypeAssociationStats { |
14 DataTypeAssociationStats(); | 15 DataTypeAssociationStats(); |
15 ~DataTypeAssociationStats(); | 16 ~DataTypeAssociationStats(); |
16 | 17 |
17 // The datatype that was associated. | 18 // The datatype that was associated. |
18 ModelType model_type; | 19 ModelType model_type; |
19 | 20 |
20 // The state of the world before association. | 21 // The state of the world before association. |
21 int num_local_items_before_association; | 22 int num_local_items_before_association; |
22 int num_sync_items_before_association; | 23 int num_sync_items_before_association; |
23 | 24 |
(...skipping 10 matching lines...) Expand all Loading... |
34 int num_sync_items_deleted; | 35 int num_sync_items_deleted; |
35 int num_sync_items_modified; | 36 int num_sync_items_modified; |
36 | 37 |
37 // Whether a datatype unrecoverable error was encountered during association. | 38 // Whether a datatype unrecoverable error was encountered during association. |
38 bool had_error; | 39 bool had_error; |
39 }; | 40 }; |
40 | 41 |
41 } // namespace syncer | 42 } // namespace syncer |
42 | 43 |
43 #endif // SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ | 44 #endif // SYNC_INTERNAL_API_PUBLIC_DATA_TYPE_ASSOCIATION_STATS_H_ |
OLD | NEW |