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 CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // sync yet. So there's nothing we can do but wait for the server. | 117 // sync yet. So there's nothing we can do but wait for the server. |
118 OFFLINE_UNUSABLE, | 118 OFFLINE_UNUSABLE, |
119 | 119 |
120 SUMMARY_STATUS_COUNT, | 120 SUMMARY_STATUS_COUNT, |
121 }; | 121 }; |
122 | 122 |
123 Status(); | 123 Status(); |
124 ~Status(); | 124 ~Status(); |
125 | 125 |
126 Summary summary; | 126 Summary summary; |
127 bool authenticated; // Successfully authenticated via GAIA. | |
128 bool server_up; // True if we have received at least one good | |
129 // reply from the server. | |
130 bool server_reachable; // True if we received any reply from the server. | |
131 bool notifications_enabled; // True only if subscribed for notifications. | 127 bool notifications_enabled; // True only if subscribed for notifications. |
132 | 128 |
133 // Notifications counters updated by the actions in synapi. | 129 // Notifications counters updated by the actions in synapi. |
134 int notifications_received; | 130 int notifications_received; |
135 | 131 |
136 browser_sync::SyncProtocolError sync_protocol_error; | 132 browser_sync::SyncProtocolError sync_protocol_error; |
137 | 133 |
138 // Number of unsynced items counted at the start of most recent sync cycle. | 134 // Number of unsynced items counted at the start of most recent sync cycle. |
139 int unsynced_count; | 135 int unsynced_count; |
140 | 136 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 sync_api::UserShare* share); | 663 sync_api::UserShare* share); |
668 | 664 |
669 const char* ConnectionStatusToString(ConnectionStatus status); | 665 const char* ConnectionStatusToString(ConnectionStatus status); |
670 | 666 |
671 // Returns the string representation of a PassphraseRequiredReason value. | 667 // Returns the string representation of a PassphraseRequiredReason value. |
672 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 668 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
673 | 669 |
674 } // namespace sync_api | 670 } // namespace sync_api |
675 | 671 |
676 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 672 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |