| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // sync yet. So there's nothing we can do but wait for the server. | 110 // sync yet. So there's nothing we can do but wait for the server. |
| 111 OFFLINE_UNUSABLE, | 111 OFFLINE_UNUSABLE, |
| 112 | 112 |
| 113 SUMMARY_STATUS_COUNT, | 113 SUMMARY_STATUS_COUNT, |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 Status(); | 116 Status(); |
| 117 ~Status(); | 117 ~Status(); |
| 118 | 118 |
| 119 Summary summary; | 119 Summary summary; |
| 120 bool authenticated; // Successfully authenticated via GAIA. | |
| 121 bool server_up; // True if we have received at least one good | |
| 122 // reply from the server. | |
| 123 bool server_reachable; // True if we received any reply from the server. | |
| 124 bool server_broken; // True of the syncer is stopped because of server | 120 bool server_broken; // True of the syncer is stopped because of server |
| 125 // issues. | 121 // issues. |
| 126 bool notifications_enabled; // True only if subscribed for notifications. | 122 bool notifications_enabled; // True only if subscribed for notifications. |
| 127 | 123 |
| 128 // Notifications counters updated by the actions in synapi. | 124 // Notifications counters updated by the actions in synapi. |
| 129 int notifications_received; | 125 int notifications_received; |
| 130 int notifiable_commits; | 126 int notifiable_commits; |
| 131 | 127 |
| 132 // The max number of consecutive errors from any component. | 128 // The max number of consecutive errors from any component. |
| 133 int max_consecutive_errors; | 129 int max_consecutive_errors; |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 617 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 622 syncable::ModelTypeSet types, | 618 syncable::ModelTypeSet types, |
| 623 sync_api::UserShare* share); | 619 sync_api::UserShare* share); |
| 624 | 620 |
| 625 // Returns the string representation of a PassphraseRequiredReason value. | 621 // Returns the string representation of a PassphraseRequiredReason value. |
| 626 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 622 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
| 627 | 623 |
| 628 } // namespace sync_api | 624 } // namespace sync_api |
| 629 | 625 |
| 630 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 626 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |