Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sync/internal_api/public/sessions/model_neutral_state.h

Issue 256413007: Remove changes remaining counter from about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/engine/sync_status.cc ('k') | sync/internal_api/public/sessions/model_neutral_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698