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

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

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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/get_commit_ids_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 (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 #include "sync/engine/get_commit_ids_command.h" 5 #include "sync/engine/get_commit_ids_command.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "sync/engine/nigori_util.h" 11 #include "sync/engine/nigori_util.h"
12 #include "sync/engine/syncer_util.h" 12 #include "sync/engine/syncer_util.h"
13 #include "sync/engine/throttled_data_type_tracker.h" 13 #include "sync/engine/throttled_data_type_tracker.h"
14 #include "sync/syncable/entry.h" 14 #include "sync/syncable/entry.h"
15 #include "sync/syncable/mutable_entry.h" 15 #include "sync/syncable/mutable_entry.h"
16 #include "sync/syncable/write_transaction.h" 16 #include "sync/syncable/write_transaction.h"
17 #include "sync/util/cryptographer.h" 17 #include "sync/util/cryptographer.h"
18 18
19 using std::set; 19 using std::set;
20 using std::vector; 20 using std::vector;
21 21
22 namespace csync { 22 namespace syncer {
23 23
24 using sessions::OrderedCommitSet; 24 using sessions::OrderedCommitSet;
25 using sessions::SyncSession; 25 using sessions::SyncSession;
26 using sessions::StatusController; 26 using sessions::StatusController;
27 27
28 GetCommitIdsCommand::GetCommitIdsCommand( 28 GetCommitIdsCommand::GetCommitIdsCommand(
29 const size_t commit_batch_size, 29 const size_t commit_batch_size,
30 sessions::OrderedCommitSet* commit_set) 30 sessions::OrderedCommitSet* commit_set)
31 : requested_commit_batch_size_(commit_batch_size), 31 : requested_commit_batch_size_(commit_batch_size),
32 commit_set_(commit_set) { 32 commit_set_(commit_set) {
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // We commit deleted moves under deleted items as moves when collapsing 425 // We commit deleted moves under deleted items as moves when collapsing
426 // delete trees. 426 // delete trees.
427 427
428 // Add moves and creates, and prepend their uncommitted parents. 428 // Add moves and creates, and prepend their uncommitted parents.
429 AddCreatesAndMoves(write_transaction, routes, ready_unsynced_set); 429 AddCreatesAndMoves(write_transaction, routes, ready_unsynced_set);
430 430
431 // Add all deletes. 431 // Add all deletes.
432 AddDeletes(write_transaction, ready_unsynced_set); 432 AddDeletes(write_transaction, ready_unsynced_set);
433 } 433 }
434 434
435 } // namespace csync 435 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/get_commit_ids_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