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 COMPONENTS_SYNC_ENGINE_SYNC_STATUS_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_STATUS_H_ |
6 #define COMPONENTS_SYNC_ENGINE_SYNC_STATUS_H_ | 6 #define COMPONENTS_SYNC_ENGINE_SYNC_STATUS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
13 #include "components/sync/base/sync_export.h" | |
14 #include "components/sync/core/sync_encryption_handler.h" | 13 #include "components/sync/core/sync_encryption_handler.h" |
15 #include "components/sync/protocol/sync_protocol_error.h" | 14 #include "components/sync/protocol/sync_protocol_error.h" |
16 | 15 |
17 namespace syncer { | 16 namespace syncer { |
18 | 17 |
19 // Status encapsulates detailed state about the internals of the SyncManager. | 18 // Status encapsulates detailed state about the internals of the SyncManager. |
20 // | 19 // |
21 // This struct is closely tied to the AllStatus object which uses instances of | 20 // This struct is closely tied to the AllStatus object which uses instances of |
22 // it to track and report on the sync engine's internal state, and the functions | 21 // it to track and report on the sync engine's internal state, and the functions |
23 // in sync_ui_util.cc which convert the contents of this struct into a | 22 // in sync_ui_util.cc which convert the contents of this struct into a |
24 // DictionaryValue used to populate the about:sync summary tab. | 23 // DictionaryValue used to populate the about:sync summary tab. |
25 struct SYNC_EXPORT SyncStatus { | 24 struct SyncStatus { |
26 SyncStatus(); | 25 SyncStatus(); |
27 SyncStatus(const SyncStatus& other); | 26 SyncStatus(const SyncStatus& other); |
28 ~SyncStatus(); | 27 ~SyncStatus(); |
29 | 28 |
30 // TODO(akalin): Replace this with a NotificationsDisabledReason | 29 // TODO(akalin): Replace this with a NotificationsDisabledReason |
31 // variable. | 30 // variable. |
32 bool notifications_enabled; // True only if subscribed for notifications. | 31 bool notifications_enabled; // True only if subscribed for notifications. |
33 | 32 |
34 // Notifications counters updated by the actions in synapi. | 33 // Notifications counters updated by the actions in synapi. |
35 int notifications_received; | 34 int notifications_received; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 std::vector<int> num_entries_by_type; | 90 std::vector<int> num_entries_by_type; |
92 std::vector<int> num_to_delete_entries_by_type; | 91 std::vector<int> num_to_delete_entries_by_type; |
93 | 92 |
94 // Time of next retry if sync scheduler is throttled or in backoff. | 93 // Time of next retry if sync scheduler is throttled or in backoff. |
95 base::Time retry_time; | 94 base::Time retry_time; |
96 }; | 95 }; |
97 | 96 |
98 } // namespace syncer | 97 } // namespace syncer |
99 | 98 |
100 #endif // COMPONENTS_SYNC_ENGINE_SYNC_STATUS_H_ | 99 #endif // COMPONENTS_SYNC_ENGINE_SYNC_STATUS_H_ |
OLD | NEW |