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

Side by Side Diff: sync/syncable/syncable.h

Issue 10210009: sync: Loop committing items without downloading updates (v2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 8 years, 7 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 (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_SYNCABLE_SYNCABLE_H_ 5 #ifndef SYNC_SYNCABLE_SYNCABLE_H_
6 #define SYNC_SYNCABLE_SYNCABLE_H_ 6 #define SYNC_SYNCABLE_SYNCABLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <bitset> 10 #include <bitset>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 }; 192 };
193 193
194 enum { 194 enum {
195 FIELD_COUNT = PROTO_FIELDS_END, 195 FIELD_COUNT = PROTO_FIELDS_END,
196 // Past this point we have temporaries, stored in memory only. 196 // Past this point we have temporaries, stored in memory only.
197 BEGIN_TEMPS = PROTO_FIELDS_END, 197 BEGIN_TEMPS = PROTO_FIELDS_END,
198 BIT_TEMPS_BEGIN = BEGIN_TEMPS, 198 BIT_TEMPS_BEGIN = BEGIN_TEMPS,
199 }; 199 };
200 200
201 enum BitTemp { 201 enum BitTemp {
202 // Not to be confused with IS_UNSYNCED, this bit is used to detect local
203 // changes to items that happen during the server Commit operation.
202 SYNCING = BIT_TEMPS_BEGIN, 204 SYNCING = BIT_TEMPS_BEGIN,
203 BIT_TEMPS_END, 205 BIT_TEMPS_END,
204 }; 206 };
205 207
206 enum { 208 enum {
207 BIT_TEMPS_COUNT = BIT_TEMPS_END - BIT_TEMPS_BEGIN 209 BIT_TEMPS_COUNT = BIT_TEMPS_END - BIT_TEMPS_BEGIN
208 }; 210 };
209 211
210 class BaseTransaction; 212 class BaseTransaction;
211 class WriteTransaction; 213 class WriteTransaction;
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid); 1345 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);
1344 1346
1345 // This function sets only the flags needed to get this entry to sync. 1347 // This function sets only the flags needed to get this entry to sync.
1346 bool MarkForSyncing(syncable::MutableEntry* e); 1348 bool MarkForSyncing(syncable::MutableEntry* e);
1347 1349
1348 } // namespace syncable 1350 } // namespace syncable
1349 1351
1350 std::ostream& operator <<(std::ostream&, const syncable::Blob&); 1352 std::ostream& operator <<(std::ostream&, const syncable::Blob&);
1351 1353
1352 #endif // SYNC_SYNCABLE_SYNCABLE_H_ 1354 #endif // SYNC_SYNCABLE_SYNCABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698