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 sync_api { | 13 namespace sync_api { |
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 |
| 26 // variable. |
25 bool notifications_enabled; // True only if subscribed for notifications. | 27 bool notifications_enabled; // True only if subscribed for notifications. |
26 | 28 |
27 // Notifications counters updated by the actions in synapi. | 29 // Notifications counters updated by the actions in synapi. |
28 int notifications_received; | 30 int notifications_received; |
29 | 31 |
30 browser_sync::SyncProtocolError sync_protocol_error; | 32 browser_sync::SyncProtocolError sync_protocol_error; |
31 | 33 |
32 // Number of encryption conflicts counted during most recent sync cycle. | 34 // Number of encryption conflicts counted during most recent sync cycle. |
33 int encryption_conflicts; | 35 int encryption_conflicts; |
34 | 36 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Per-datatype throttled status. | 87 // Per-datatype throttled status. |
86 syncable::ModelTypeSet throttled_types; | 88 syncable::ModelTypeSet throttled_types; |
87 | 89 |
88 // The unique identifer for this client. | 90 // The unique identifer for this client. |
89 std::string unique_id; | 91 std::string unique_id; |
90 }; | 92 }; |
91 | 93 |
92 } // namespace sync_api | 94 } // namespace sync_api |
93 | 95 |
94 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ | 96 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ |
OLD | NEW |