| 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/syncable/model_type.h" | 10 #include "sync/internal_api/public/syncable/model_type.h" |
| 11 #include "sync/protocol/sync_protocol_error.h" | 11 #include "sync/protocol/sync_protocol_error.h" |
| 12 | 12 |
| 13 namespace csync { | 13 namespace syncer { |
| 14 | 14 |
| 15 // Status encapsulates detailed state about the internals of the SyncManager. | 15 // Status encapsulates detailed state about the internals of the SyncManager. |
| 16 // | 16 // |
| 17 // This struct is closely tied to the AllStatus object which uses instances of | 17 // This struct is closely tied to the AllStatus object which uses instances of |
| 18 // it to track and report on the sync engine's internal state, and the functions | 18 // it to track and report on the sync engine's internal state, and the functions |
| 19 // in sync_ui_util.cc which convert the contents of this struct into a | 19 // in sync_ui_util.cc which convert the contents of this struct into a |
| 20 // DictionaryValue used to populate the about:sync summary tab. | 20 // DictionaryValue used to populate the about:sync summary tab. |
| 21 struct SyncStatus { | 21 struct SyncStatus { |
| 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 csync::SyncProtocolError sync_protocol_error; | 32 syncer::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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 syncable::ModelTypeSet throttled_types; | 88 syncable::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 csync | 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 |