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

Side by Side Diff: sync/engine/get_commit_ids_command.h

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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/engine/download_updates_command.h ('k') | sync/engine/model_changing_syncer_command.h » ('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 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_ENGINE_GET_COMMIT_IDS_COMMAND_H_ 5 #ifndef SYNC_ENGINE_GET_COMMIT_IDS_COMMAND_H_
6 #define SYNC_ENGINE_GET_COMMIT_IDS_COMMAND_H_ 6 #define SYNC_ENGINE_GET_COMMIT_IDS_COMMAND_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "sync/base/sync_export.h"
12 #include "sync/engine/syncer_command.h" 13 #include "sync/engine/syncer_command.h"
13 #include "sync/engine/syncer_util.h" 14 #include "sync/engine/syncer_util.h"
14 #include "sync/sessions/ordered_commit_set.h" 15 #include "sync/sessions/ordered_commit_set.h"
15 #include "sync/sessions/sync_session.h" 16 #include "sync/sessions/sync_session.h"
16 #include "sync/syncable/directory.h" 17 #include "sync/syncable/directory.h"
17 18
18 using std::pair; 19 using std::pair;
19 using std::vector; 20 using std::vector;
20 21
21 namespace syncer { 22 namespace syncer {
22 23
23 // A class that contains the code used to search the syncable::Directory for 24 // A class that contains the code used to search the syncable::Directory for
24 // locally modified items that are ready to be committed to the server. 25 // locally modified items that are ready to be committed to the server.
25 // 26 //
26 // See SyncerCommand documentation for more info. 27 // See SyncerCommand documentation for more info.
27 class GetCommitIdsCommand : public SyncerCommand { 28 class SYNC_EXPORT_PRIVATE GetCommitIdsCommand : public SyncerCommand {
28 friend class SyncerTest; 29 friend class SyncerTest;
29 30
30 public: 31 public:
31 // The batch_size parameter is the maximum number of entries we are allowed 32 // The batch_size parameter is the maximum number of entries we are allowed
32 // to commit in a single batch. This value can be modified by the server. 33 // to commit in a single batch. This value can be modified by the server.
33 // 34 //
34 // The ordered_commit_set parameter is an output parameter that will contain a 35 // The ordered_commit_set parameter is an output parameter that will contain a
35 // set of items that are ready to commit. Its size shall not exceed the 36 // set of items that are ready to commit. Its size shall not exceed the
36 // provided batch_size. This contents of this "set" will be ordered; see the 37 // provided batch_size. This contents of this "set" will be ordered; see the
37 // comments in this class' implementation for details. 38 // comments in this class' implementation for details.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 131
131 // Output parameter; see constructor comment. 132 // Output parameter; see constructor comment.
132 sessions::OrderedCommitSet* commit_set_; 133 sessions::OrderedCommitSet* commit_set_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(GetCommitIdsCommand); 135 DISALLOW_COPY_AND_ASSIGN(GetCommitIdsCommand);
135 }; 136 };
136 137
137 } // namespace syncer 138 } // namespace syncer
138 139
139 #endif // SYNC_ENGINE_GET_COMMIT_IDS_COMMAND_H_ 140 #endif // SYNC_ENGINE_GET_COMMIT_IDS_COMMAND_H_
OLDNEW
« no previous file with comments | « sync/engine/download_updates_command.h ('k') | sync/engine/model_changing_syncer_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698