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

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

Issue 10917234: sync: make scheduling logic and job ownership more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eof Created 8 years, 1 month 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 (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 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/internal_api/public/util/syncer_error.h" 9 #include "sync/internal_api/public/util/syncer_error.h"
10 #include "sync/protocol/sync.pb.h" 10 #include "sync/protocol/sync.pb.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // True indicates debug info has been sent once this session. 69 // True indicates debug info has been sent once this session.
70 bool debug_info_sent; 70 bool debug_info_sent;
71 71
72 // Number of changes remaining, according to the server. 72 // Number of changes remaining, according to the server.
73 // Take it as an estimate unless it's value is zero, in which case there 73 // Take it as an estimate unless it's value is zero, in which case there
74 // really is nothing more to download. 74 // really is nothing more to download.
75 int64 num_server_changes_remaining; 75 int64 num_server_changes_remaining;
76 }; 76 };
77 77
78 bool HasSyncerError(const ModelNeutralState& state);
79
78 } // namespace sessions 80 } // namespace sessions
79 } // namespace syncer 81 } // namespace syncer
80 82
81 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ 83 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/js_sync_manager_observer_unittest.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