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

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

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/cleanup_disabled_types_command_unittest.cc ('k') | sync/engine/commit.cc » ('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 #ifndef SYNC_ENGINE_COMMIT_H_ 5 #ifndef SYNC_ENGINE_COMMIT_H_
6 #define SYNC_ENGINE_COMMIT_H_ 6 #define SYNC_ENGINE_COMMIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "sync/internal_api/public/util/syncer_error.h" 9 #include "sync/internal_api/public/util/syncer_error.h"
10 10
11 namespace csync { 11 namespace syncer {
12 12
13 namespace sessions { 13 namespace sessions {
14 class SyncSession; 14 class SyncSession;
15 } 15 }
16 16
17 class Syncer; 17 class Syncer;
18 18
19 // This function will commit batches of unsynced items to the server until the 19 // This function will commit batches of unsynced items to the server until the
20 // number of unsynced and ready to commit items reaches zero or an error is 20 // number of unsynced and ready to commit items reaches zero or an error is
21 // encountered. A request to exit early will be treated as an error and will 21 // encountered. A request to exit early will be treated as an error and will
22 // abort any blocking operations. 22 // abort any blocking operations.
23 // 23 //
24 // The Syncer parameter is provided only for access to its ExitRequested() 24 // The Syncer parameter is provided only for access to its ExitRequested()
25 // method. This is technically unnecessary since an early exit request should 25 // method. This is technically unnecessary since an early exit request should
26 // be detected as we attempt to contact the sync server. 26 // be detected as we attempt to contact the sync server.
27 // 27 //
28 // The SyncSession parameter contains pointers to various bits of state, 28 // The SyncSession parameter contains pointers to various bits of state,
29 // including the syncable::Directory that contains all sync items and the 29 // including the syncable::Directory that contains all sync items and the
30 // ServerConnectionManager used to contact the server. 30 // ServerConnectionManager used to contact the server.
31 SyncerError BuildAndPostCommits( 31 SyncerError BuildAndPostCommits(
32 Syncer* syncer, 32 Syncer* syncer,
33 sessions::SyncSession* session); 33 sessions::SyncSession* session);
34 34
35 } // namespace csync 35 } // namespace syncer
36 36
37 #endif // SYNC_ENGINE_COMMIT_H_ 37 #endif // SYNC_ENGINE_COMMIT_H_
OLDNEW
« no previous file with comments | « sync/engine/cleanup_disabled_types_command_unittest.cc ('k') | sync/engine/commit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698