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

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

Issue 9950137: [not for review] sync: Don't use group_restriction from ApplyUpdatesCommand. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/syncable/syncable.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 // Returns the number of entities with the unsynced bit set. 996 // Returns the number of entities with the unsynced bit set.
997 int64 unsynced_entity_count() const; 997 int64 unsynced_entity_count() const;
998 998
999 // Get GetUnsyncedMetaHandles should only be called after SaveChanges and 999 // Get GetUnsyncedMetaHandles should only be called after SaveChanges and
1000 // before any new entries have been created. The intention is that the 1000 // before any new entries have been created. The intention is that the
1001 // syncer should call it from its PerformSyncQueries member. 1001 // syncer should call it from its PerformSyncQueries member.
1002 typedef std::vector<int64> UnsyncedMetaHandles; 1002 typedef std::vector<int64> UnsyncedMetaHandles;
1003 void GetUnsyncedMetaHandles(BaseTransaction* trans, 1003 void GetUnsyncedMetaHandles(BaseTransaction* trans,
1004 UnsyncedMetaHandles* result); 1004 UnsyncedMetaHandles* result);
1005 1005
1006 // Returns all server types with unapplied updates. A subset of
1007 // those types can then be passed into
1008 // GetUnappliedUpdateMetaHandles() below.
1009 FullModelTypeSet GetServerTypesWithUnappliedUpdates(
1010 BaseTransaction* trans) const;
1011
1012 // Get all the metahandles for unapplied updates for a given set of 1006 // Get all the metahandles for unapplied updates for a given set of
1013 // server types. 1007 // server types.
1014 void GetUnappliedUpdateMetaHandles(BaseTransaction* trans, 1008 void GetUnappliedUpdateMetaHandles(BaseTransaction* trans,
1015 FullModelTypeSet server_types, 1009 FullModelTypeSet server_types,
1016 std::vector<int64>* result); 1010 std::vector<int64>* result);
1017 1011
1018 // Checks tree metadata consistency. 1012 // Checks tree metadata consistency.
1019 // If full_scan is false, the function will avoid pulling any entries from the 1013 // If full_scan is false, the function will avoid pulling any entries from the
1020 // db and scan entries currently in ram. 1014 // db and scan entries currently in ram.
1021 // If full_scan is true, all entries will be pulled from the database. 1015 // If full_scan is true, all entries will be pulled from the database.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid); 1333 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);
1340 1334
1341 // This function sets only the flags needed to get this entry to sync. 1335 // This function sets only the flags needed to get this entry to sync.
1342 bool MarkForSyncing(syncable::MutableEntry* e); 1336 bool MarkForSyncing(syncable::MutableEntry* e);
1343 1337
1344 } // namespace syncable 1338 } // namespace syncable
1345 1339
1346 std::ostream& operator <<(std::ostream&, const syncable::Blob&); 1340 std::ostream& operator <<(std::ostream&, const syncable::Blob&);
1347 1341
1348 #endif // SYNC_SYNCABLE_SYNCABLE_H_ 1342 #endif // SYNC_SYNCABLE_SYNCABLE_H_
OLDNEW
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/syncable/syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698