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

Unified Diff: sync/engine/get_commit_ids_command.h

Issue 15764010: Experimental functionize patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync: Expose sync functionality as functions Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/engine/download_updates_command_unittest.cc ('k') | sync/engine/get_commit_ids_command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/get_commit_ids_command.h
diff --git a/sync/engine/get_commit_ids_command.h b/sync/engine/get_commit_ids_command.h
index 02d6766585eea7d729eaf97b523586f0e28e86eb..b6578a644f20bbe7044ec00a66f9442eb00fd4a7 100644
--- a/sync/engine/get_commit_ids_command.h
+++ b/sync/engine/get_commit_ids_command.h
@@ -40,6 +40,7 @@ class SYNC_EXPORT_PRIVATE GetCommitIdsCommand : public SyncerCommand {
// provided batch_size. This contents of this "set" will be ordered; see the
// comments in this class' implementation for details.
GetCommitIdsCommand(syncable::BaseTransaction* trans,
+ ModelTypeSet requested_types,
const size_t commit_batch_size,
sessions::OrderedCommitSet* ordered_commit_set);
virtual ~GetCommitIdsCommand();
@@ -122,6 +123,9 @@ class SYNC_EXPORT_PRIVATE GetCommitIdsCommand : public SyncerCommand {
// A pointer to a valid transaction not owned by this class.
syncable::BaseTransaction* trans_;
+ // The set of types from which to draw commit IDs.
+ ModelTypeSet requested_types_;
+
// Input parameter; see constructor comment.
const size_t requested_commit_batch_size_;
« no previous file with comments | « sync/engine/download_updates_command_unittest.cc ('k') | sync/engine/get_commit_ids_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698