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

Side by Side Diff: sync/internal_api/public/data_type_association_stats.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/data_batch_impl_unittest.cc ('k') | sync/internal_api/public/data_type_association_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698