Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1258)

Side by Side Diff: components/sync/core/data_type_association_stats.h

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 COMPONENTS_SYNC_CORE_DATA_TYPE_ASSOCIATION_STATS_H_
6 #define COMPONENTS_SYNC_CORE_DATA_TYPE_ASSOCIATION_STATS_H_
7
8 #include <stdint.h>
9
10 #include "base/time/time.h"
11
12 namespace syncer {
13
14 // Container for datatype association results.
15 struct DataTypeAssociationStats {
16 DataTypeAssociationStats();
17 DataTypeAssociationStats(const DataTypeAssociationStats& other);
18 ~DataTypeAssociationStats();
19
20 // The state of the world before association.
21 int num_local_items_before_association;
22 int num_sync_items_before_association;
23
24 // The state of the world after association.
25 int num_local_items_after_association;
26 int num_sync_items_after_association;
27
28 // The changes that took place during association. In a correctly working
29 // system these should be the deltas between before and after.
30 int num_local_items_added;
31 int num_local_items_deleted;
32 int num_local_items_modified;
33 int num_sync_items_added;
34 int num_sync_items_deleted;
35 int num_sync_items_modified;
36
37 // Model versions before association.
38 int64_t local_version_pre_association;
39 int64_t sync_version_pre_association;
40
41 // Whether a datatype unrecoverable error was encountered during association.
42 bool had_error;
43
44 // Waiting time within association manager for loading local models and
45 // associating other types.
46 base::TimeDelta association_wait_time;
47
48 // Time spent on association.
49 base::TimeDelta association_time;
50 };
51
52 } // namespace syncer
53
54 #endif // COMPONENTS_SYNC_CORE_DATA_TYPE_ASSOCIATION_STATS_H_
OLDNEW
« no previous file with comments | « components/sync/core/connection_status.h ('k') | components/sync/core/data_type_association_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698