| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // sync yet. So there's nothing we can do but wait for the server. | 108 // sync yet. So there's nothing we can do but wait for the server. |
| 109 OFFLINE_UNUSABLE, | 109 OFFLINE_UNUSABLE, |
| 110 | 110 |
| 111 SUMMARY_STATUS_COUNT, | 111 SUMMARY_STATUS_COUNT, |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 Status(); | 114 Status(); |
| 115 ~Status(); | 115 ~Status(); |
| 116 | 116 |
| 117 Summary summary; | 117 Summary summary; |
| 118 bool authenticated; // Successfully authenticated via GAIA. | |
| 119 bool server_up; // True if we have received at least one good | |
| 120 // reply from the server. | |
| 121 bool server_reachable; // True if we received any reply from the server. | |
| 122 bool notifications_enabled; // True only if subscribed for notifications. | 118 bool notifications_enabled; // True only if subscribed for notifications. |
| 123 | 119 |
| 124 // Notifications counters updated by the actions in synapi. | 120 // Notifications counters updated by the actions in synapi. |
| 125 int notifications_received; | 121 int notifications_received; |
| 126 | 122 |
| 127 browser_sync::SyncProtocolError sync_protocol_error; | 123 browser_sync::SyncProtocolError sync_protocol_error; |
| 128 | 124 |
| 129 // Number of unsynced items counted at the start of most recent sync cycle. | 125 // Number of unsynced items counted at the start of most recent sync cycle. |
| 130 int unsynced_count; | 126 int unsynced_count; |
| 131 | 127 |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 631 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 636 syncable::ModelTypeSet types, | 632 syncable::ModelTypeSet types, |
| 637 sync_api::UserShare* share); | 633 sync_api::UserShare* share); |
| 638 | 634 |
| 639 // Returns the string representation of a PassphraseRequiredReason value. | 635 // Returns the string representation of a PassphraseRequiredReason value. |
| 640 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 636 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
| 641 | 637 |
| 642 } // namespace sync_api | 638 } // namespace sync_api |
| 643 | 639 |
| 644 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 640 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |