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

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

Issue 72403003: sync: Per-type update application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix typo Created 7 years 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/sync_tests.gypi ('k') | sync/syncable/directory.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DIRECTORY_H_ 5 #ifndef SYNC_SYNCABLE_DIRECTORY_H_
6 #define SYNC_SYNCABLE_DIRECTORY_H_ 6 #define SYNC_SYNCABLE_DIRECTORY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 // Returns the number of entities with the unsynced bit set. 309 // Returns the number of entities with the unsynced bit set.
310 int64 unsynced_entity_count() const; 310 int64 unsynced_entity_count() const;
311 311
312 // Get GetUnsyncedMetaHandles should only be called after SaveChanges and 312 // Get GetUnsyncedMetaHandles should only be called after SaveChanges and
313 // before any new entries have been created. The intention is that the 313 // before any new entries have been created. The intention is that the
314 // syncer should call it from its PerformSyncQueries member. 314 // syncer should call it from its PerformSyncQueries member.
315 void GetUnsyncedMetaHandles(BaseTransaction* trans, 315 void GetUnsyncedMetaHandles(BaseTransaction* trans,
316 Metahandles* result); 316 Metahandles* result);
317 317
318 // Returns all server types with unapplied updates. A subset of 318 // Returns whether or not this |type| has unapplied updates.
319 // those types can then be passed into 319 bool TypeHasUnappliedUpdates(ModelType type);
320 // GetUnappliedUpdateMetaHandles() below.
321 FullModelTypeSet GetServerTypesWithUnappliedUpdates(
322 BaseTransaction* trans) const;
323 320
324 // Get all the metahandles for unapplied updates for a given set of 321 // Get all the metahandles for unapplied updates for a given set of
325 // server types. 322 // server types.
326 void GetUnappliedUpdateMetaHandles(BaseTransaction* trans, 323 void GetUnappliedUpdateMetaHandles(BaseTransaction* trans,
327 FullModelTypeSet server_types, 324 FullModelTypeSet server_types,
328 std::vector<int64>* result); 325 std::vector<int64>* result);
329 326
330 // Get metahandle counts for various criteria to show on the 327 // Get metahandle counts for various criteria to show on the
331 // about:sync page. The information is computed on the fly 328 // about:sync page. The information is computed on the fly
332 // each time. If this results in a significant performance hit, 329 // each time. If this results in a significant performance hit,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // are deleted in native models as well. 548 // are deleted in native models as well.
552 scoped_ptr<DeleteJournal> delete_journal_; 549 scoped_ptr<DeleteJournal> delete_journal_;
553 550
554 DISALLOW_COPY_AND_ASSIGN(Directory); 551 DISALLOW_COPY_AND_ASSIGN(Directory);
555 }; 552 };
556 553
557 } // namespace syncable 554 } // namespace syncable
558 } // namespace syncer 555 } // namespace syncer
559 556
560 #endif // SYNC_SYNCABLE_DIRECTORY_H_ 557 #endif // SYNC_SYNCABLE_DIRECTORY_H_
OLDNEW
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698