| 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/base/sync_export.h" |
| 10 #include "sync/internal_api/public/base/model_type.h" | 11 #include "sync/internal_api/public/base/model_type.h" |
| 11 #include "sync/protocol/sync_protocol_error.h" | 12 #include "sync/protocol/sync_protocol_error.h" |
| 12 | 13 |
| 13 namespace syncer { | 14 namespace syncer { |
| 14 | 15 |
| 15 // Status encapsulates detailed state about the internals of the SyncManager. | 16 // Status encapsulates detailed state about the internals of the SyncManager. |
| 16 // | 17 // |
| 17 // This struct is closely tied to the AllStatus object which uses instances of | 18 // 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 | 19 // 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 | 20 // in sync_ui_util.cc which convert the contents of this struct into a |
| 20 // DictionaryValue used to populate the about:sync summary tab. | 21 // DictionaryValue used to populate the about:sync summary tab. |
| 21 struct SyncStatus { | 22 struct SYNC_EXPORT SyncStatus { |
| 22 SyncStatus(); | 23 SyncStatus(); |
| 23 ~SyncStatus(); | 24 ~SyncStatus(); |
| 24 | 25 |
| 25 // TODO(akalin): Replace this with a NotificationsDisabledReason | 26 // TODO(akalin): Replace this with a NotificationsDisabledReason |
| 26 // variable. | 27 // variable. |
| 27 bool notifications_enabled; // True only if subscribed for notifications. | 28 bool notifications_enabled; // True only if subscribed for notifications. |
| 28 | 29 |
| 29 // Notifications counters updated by the actions in synapi. | 30 // Notifications counters updated by the actions in synapi. |
| 30 int notifications_received; | 31 int notifications_received; |
| 31 | 32 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Per-datatype throttled status. | 88 // Per-datatype throttled status. |
| 88 syncer::ModelTypeSet throttled_types; | 89 syncer::ModelTypeSet throttled_types; |
| 89 | 90 |
| 90 // The unique identifer for this client. | 91 // The unique identifer for this client. |
| 91 std::string unique_id; | 92 std::string unique_id; |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace syncer | 95 } // namespace syncer |
| 95 | 96 |
| 96 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ | 97 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_STATUS_SUMMARY_H_ |
| OLD | NEW |