OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SESSIONS_MODEL_NEUTRAL_STATE_H | 5 #ifndef SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H |
6 #define SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H | 6 #define SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "sync/base/sync_export.h" | 9 #include "sync/base/sync_export.h" |
10 #include "sync/internal_api/public/base/model_type.h" | 10 #include "sync/internal_api/public/base/model_type.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 int num_server_overwrites; | 46 int num_server_overwrites; |
47 | 47 |
48 // Records the most recent results of GetKey, PostCommit and GetUpdates | 48 // Records the most recent results of GetKey, PostCommit and GetUpdates |
49 // commands. | 49 // commands. |
50 SyncerError last_get_key_result; | 50 SyncerError last_get_key_result; |
51 SyncerError last_download_updates_result; | 51 SyncerError last_download_updates_result; |
52 SyncerError commit_result; | 52 SyncerError commit_result; |
53 | 53 |
54 // Set to true by PostCommitMessageCommand if any commits were successful. | 54 // Set to true by PostCommitMessageCommand if any commits were successful. |
55 bool items_committed; | 55 bool items_committed; |
56 | |
57 // Number of changes remaining, according to the server. | |
58 // Take it as an estimate unless it's value is zero, in which case there | |
59 // really is nothing more to download. | |
60 int64 num_server_changes_remaining; | |
61 }; | 56 }; |
62 | 57 |
63 bool HasSyncerError(const ModelNeutralState& state); | 58 bool HasSyncerError(const ModelNeutralState& state); |
64 | 59 |
65 } // namespace sessions | 60 } // namespace sessions |
66 } // namespace syncer | 61 } // namespace syncer |
67 | 62 |
68 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ | 63 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ |
OLD | NEW |