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

Side by Side Diff: sync/engine/commit.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/commit.h ('k') | sync/engine/conflict_resolver.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/commit.h" 5 #include "sync/engine/commit.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "sync/engine/build_commit_command.h" 8 #include "sync/engine/build_commit_command.h"
9 #include "sync/engine/get_commit_ids_command.h" 9 #include "sync/engine/get_commit_ids_command.h"
10 #include "sync/engine/process_commit_response_command.h" 10 #include "sync/engine/process_commit_response_command.h"
11 #include "sync/engine/syncer_proto_util.h" 11 #include "sync/engine/syncer_proto_util.h"
12 #include "sync/sessions/sync_session.h" 12 #include "sync/sessions/sync_session.h"
13 #include "sync/syncable/mutable_entry.h" 13 #include "sync/syncable/mutable_entry.h"
14 #include "sync/syncable/write_transaction.h" 14 #include "sync/syncable/write_transaction.h"
15 15
16 using syncable::SYNCER; 16 using syncable::SYNCER;
17 using syncable::WriteTransaction; 17 using syncable::WriteTransaction;
18 18
19 namespace csync { 19 namespace syncer {
20 20
21 using sessions::SyncSession; 21 using sessions::SyncSession;
22 using sessions::StatusController; 22 using sessions::StatusController;
23 23
24 namespace { 24 namespace {
25 25
26 // Sets the SYNCING bits of all items in the commit set to value_to_set. 26 // Sets the SYNCING bits of all items in the commit set to value_to_set.
27 void SetAllSyncingBitsToValue(WriteTransaction* trans, 27 void SetAllSyncingBitsToValue(WriteTransaction* trans,
28 const sessions::OrderedCommitSet& commit_set, 28 const sessions::OrderedCommitSet& commit_set,
29 bool value_to_set) { 29 bool value_to_set) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 SyncerError BuildAndPostCommits(Syncer* syncer, 149 SyncerError BuildAndPostCommits(Syncer* syncer,
150 sessions::SyncSession* session) { 150 sessions::SyncSession* session) {
151 sessions::OrderedCommitSet commit_set(session->routing_info()); 151 sessions::OrderedCommitSet commit_set(session->routing_info());
152 SyncerError result = BuildAndPostCommitsImpl(syncer, session, &commit_set); 152 SyncerError result = BuildAndPostCommitsImpl(syncer, session, &commit_set);
153 if (result != SYNCER_OK) { 153 if (result != SYNCER_OK) {
154 ClearSyncingBits(session->context()->directory(), commit_set); 154 ClearSyncingBits(session->context()->directory(), commit_set);
155 } 155 }
156 return result; 156 return result;
157 } 157 }
158 158
159 } // namespace csync 159 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/commit.h ('k') | sync/engine/conflict_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698