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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head 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/syncer_util.cc ('k') | sync/engine/verify_updates_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 // An UpdateApplicator is used to iterate over a number of unapplied updates, 5 // An UpdateApplicator is used to iterate over a number of unapplied updates,
6 // applying them to the client using the given syncer session. 6 // applying them to the client using the given syncer session.
7 // 7 //
8 // UpdateApplicator might resemble an iterator, but it actually keeps retrying 8 // UpdateApplicator might resemble an iterator, but it actually keeps retrying
9 // failed updates until no remaining updates can be successfully applied. 9 // failed updates until no remaining updates can be successfully applied.
10 10
11 #ifndef SYNC_ENGINE_UPDATE_APPLICATOR_H_ 11 #ifndef SYNC_ENGINE_UPDATE_APPLICATOR_H_
12 #define SYNC_ENGINE_UPDATE_APPLICATOR_H_ 12 #define SYNC_ENGINE_UPDATE_APPLICATOR_H_
13 #pragma once 13 #pragma once
14 14
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/port.h" 18 #include "base/port.h"
19 #include "sync/internal_api/public/engine/model_safe_worker.h" 19 #include "sync/internal_api/public/engine/model_safe_worker.h"
20 #include "sync/syncable/syncable_id.h" 20 #include "sync/syncable/syncable_id.h"
21 21
22 namespace syncable {
23 class WriteTransaction;
24 class Entry;
25 }
26
27 namespace syncer { 22 namespace syncer {
28 23
29 namespace sessions { 24 namespace sessions {
30 class ConflictProgress; 25 class ConflictProgress;
31 class UpdateProgress; 26 class UpdateProgress;
32 } 27 }
33 28
29 namespace syncable {
30 class WriteTransaction;
31 class Entry;
32 }
33
34 class ConflictResolver; 34 class ConflictResolver;
35 class Cryptographer; 35 class Cryptographer;
36 36
37 class UpdateApplicator { 37 class UpdateApplicator {
38 public: 38 public:
39 typedef std::vector<int64>::iterator UpdateIterator; 39 typedef std::vector<int64>::iterator UpdateIterator;
40 40
41 UpdateApplicator(ConflictResolver* resolver, 41 UpdateApplicator(ConflictResolver* resolver,
42 Cryptographer* cryptographer, 42 Cryptographer* cryptographer,
43 const UpdateIterator& begin, 43 const UpdateIterator& begin,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Track the result of the attempts to update applications. 106 // Track the result of the attempts to update applications.
107 ResultTracker application_results_; 107 ResultTracker application_results_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(UpdateApplicator); 109 DISALLOW_COPY_AND_ASSIGN(UpdateApplicator);
110 }; 110 };
111 111
112 } // namespace syncer 112 } // namespace syncer
113 113
114 #endif // SYNC_ENGINE_UPDATE_APPLICATOR_H_ 114 #endif // SYNC_ENGINE_UPDATE_APPLICATOR_H_
OLDNEW
« no previous file with comments | « sync/engine/syncer_util.cc ('k') | sync/engine/verify_updates_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698