| 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 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "sync/internal_api/public/base/model_type.h" | 10 #include "sync/internal_api/public/base/model_type.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 SyncStatus(); | 22 SyncStatus(); |
| 23 ~SyncStatus(); | 23 ~SyncStatus(); |
| 24 | 24 |
| 25 // TODO(akalin): Replace this with a NotificationsDisabledReason | 25 // TODO(akalin): Replace this with a NotificationsDisabledReason |
| 26 // variable. | 26 // variable. |
| 27 bool notifications_enabled; // True only if subscribed for notifications. | 27 bool notifications_enabled; // True only if subscribed for notifications. |
| 28 | 28 |
| 29 // Notifications counters updated by the actions in synapi. | 29 // Notifications counters updated by the actions in synapi. |
| 30 int notifications_received; | 30 int notifications_received; |
| 31 | 31 |
| 32 syncer::SyncProtocolError sync_protocol_error; | 32 SyncProtocolError sync_protocol_error; |
| 33 | 33 |
| 34 // Number of encryption conflicts counted during most recent sync cycle. | 34 // Number of encryption conflicts counted during most recent sync cycle. |
| 35 int encryption_conflicts; | 35 int encryption_conflicts; |
| 36 | 36 |
| 37 // Number of hierarchy conflicts counted during most recent sync cycle. | 37 // Number of hierarchy conflicts counted during most recent sync cycle. |
| 38 int hierarchy_conflicts; | 38 int hierarchy_conflicts; |
| 39 | 39 |
| 40 // Number of simple conflicts counted during most recent sync cycle. | 40 // Number of simple conflicts counted during most recent sync cycle. |
| 41 int simple_conflicts; | 41 int simple_conflicts; |
| 42 | 42 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 // Count of sync cycles that successfully committed items; | 74 // Count of sync cycles that successfully committed items; |
| 75 int sync_cycles_with_commits; | 75 int sync_cycles_with_commits; |
| 76 int sync_cycles_without_commits; | 76 int sync_cycles_without_commits; |
| 77 | 77 |
| 78 // Count of useless and useful syncs we perform. | 78 // Count of useless and useful syncs we perform. |
| 79 int useless_sync_cycles; | 79 int useless_sync_cycles; |
| 80 int useful_sync_cycles; | 80 int useful_sync_cycles; |
| 81 | 81 |
| 82 // Encryption related. | 82 // Encryption related. |
| 83 syncer::ModelTypeSet encrypted_types; | 83 ModelTypeSet encrypted_types; |
| 84 bool cryptographer_ready; | 84 bool cryptographer_ready; |
| 85 bool crypto_has_pending_keys; | 85 bool crypto_has_pending_keys; |
| 86 | 86 |
| 87 // Per-datatype throttled status. | 87 // Per-datatype throttled status. |
| 88 syncer::ModelTypeSet throttled_types; | 88 ModelTypeSet throttled_types; |
| 89 | 89 |
| 90 // The unique identifer for this client. | 90 // The unique identifer for this client. |
| 91 std::string unique_id; | 91 std::string unique_id; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace syncer | 94 } // namespace syncer |
| 95 | 95 |
| 96 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ | 96 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ |
| OLD | NEW |