OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "sync/internal_api/public/engine/sync_status.h" | 5 #include "sync/internal_api/public/engine/sync_status.h" |
6 | 6 |
7 namespace syncer { | 7 namespace syncer { |
8 | 8 |
9 SyncStatus::SyncStatus() | 9 SyncStatus::SyncStatus() |
10 : notifications_enabled(false), | 10 : notifications_enabled(false), |
11 notifications_received(0), | 11 notifications_received(0), |
12 encryption_conflicts(0), | 12 encryption_conflicts(0), |
13 hierarchy_conflicts(0), | 13 hierarchy_conflicts(0), |
14 server_conflicts(0), | 14 server_conflicts(0), |
15 committed_count(0), | 15 committed_count(0), |
16 syncing(false), | 16 syncing(false), |
17 initial_sync_ended(false), | |
18 updates_available(0), | 17 updates_available(0), |
19 updates_received(0), | 18 updates_received(0), |
20 reflected_updates_received(0), | 19 reflected_updates_received(0), |
21 tombstone_updates_received(0), | 20 tombstone_updates_received(0), |
22 num_commits_total(0), | 21 num_commits_total(0), |
23 num_local_overwrites_total(0), | 22 num_local_overwrites_total(0), |
24 num_server_overwrites_total(0), | 23 num_server_overwrites_total(0), |
25 nonempty_get_updates(0), | 24 nonempty_get_updates(0), |
26 empty_get_updates(0), | 25 empty_get_updates(0), |
27 sync_cycles_with_commits(0), | 26 sync_cycles_with_commits(0), |
28 sync_cycles_without_commits(0), | 27 sync_cycles_without_commits(0), |
29 useless_sync_cycles(0), | 28 useless_sync_cycles(0), |
30 useful_sync_cycles(0), | 29 useful_sync_cycles(0), |
31 nudge_source_notification(0), | 30 nudge_source_notification(0), |
32 nudge_source_local(0), | 31 nudge_source_local(0), |
33 nudge_source_local_refresh(0), | 32 nudge_source_local_refresh(0), |
34 cryptographer_ready(false), | 33 cryptographer_ready(false), |
35 crypto_has_pending_keys(false), | 34 crypto_has_pending_keys(false), |
36 has_keystore_key(false), | 35 has_keystore_key(false), |
37 passphrase_type(IMPLICIT_PASSPHRASE), | 36 passphrase_type(IMPLICIT_PASSPHRASE), |
38 num_entries_by_type(MODEL_TYPE_COUNT, 0), | 37 num_entries_by_type(MODEL_TYPE_COUNT, 0), |
39 num_to_delete_entries_by_type(MODEL_TYPE_COUNT, 0){ | 38 num_to_delete_entries_by_type(MODEL_TYPE_COUNT, 0){ |
40 } | 39 } |
41 | 40 |
42 SyncStatus::~SyncStatus() { | 41 SyncStatus::~SyncStatus() { |
43 } | 42 } |
44 | 43 |
45 } // namespace syncer | 44 } // namespace syncer |
OLD | NEW |