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

Side by Side Diff: components/sync/engine_impl/get_commit_ids.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 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
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 COMPONENTS_SYNC_ENGINE_IMPL_GET_COMMIT_IDS_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_GET_COMMIT_IDS_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_GET_COMMIT_IDS_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_GET_COMMIT_IDS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "components/sync/base/sync_export.h"
15 #include "components/sync/syncable/directory.h" 14 #include "components/sync/syncable/directory.h"
16 15
17 using std::vector; 16 using std::vector;
18 17
19 namespace syncer { 18 namespace syncer {
20 19
21 namespace syncable { 20 namespace syncable {
22 class BaseTransaction; 21 class BaseTransaction;
23 } 22 }
24 23
25 // Returns up to |max_entries| metahandles of entries that belong to the 24 // Returns up to |max_entries| metahandles of entries that belong to the
26 // specified |type| and are ready for commit. 25 // specified |type| and are ready for commit.
27 // 26 //
28 // This function returns handles in "commit order". A valid commit ordering is 27 // This function returns handles in "commit order". A valid commit ordering is
29 // one where server-unknown items are committed parents-first, and deletions 28 // one where server-unknown items are committed parents-first, and deletions
30 // are committed children-first. 29 // are committed children-first.
31 // 30 //
32 // This function also enforces some position ordering constraints that are no 31 // This function also enforces some position ordering constraints that are no
33 // longer necessary. We should relax those constraints. See crbug.com/287938. 32 // longer necessary. We should relax those constraints. See crbug.com/287938.
34 SYNC_EXPORT void GetCommitIdsForType(syncable::BaseTransaction* trans, 33 void GetCommitIdsForType(syncable::BaseTransaction* trans,
35 ModelType type, 34 ModelType type,
36 size_t max_entries, 35 size_t max_entries,
37 std::vector<int64_t>* out); 36 std::vector<int64_t>* out);
38 37
39 } // namespace syncer 38 } // namespace syncer
40 39
41 #endif // COMPONENTS_SYNC_ENGINE_IMPL_GET_COMMIT_IDS_H_ 40 #endif // COMPONENTS_SYNC_ENGINE_IMPL_GET_COMMIT_IDS_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/directory_update_handler.h ('k') | components/sync/engine_impl/get_updates_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698