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

Side by Side Diff: sync/internal_api/sync_rollback_manager.h

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <string> 11 #include <string>
10 #include <vector> 12 #include <vector>
11 13
14 #include "base/macros.h"
12 #include "sync/internal_api/sync_rollback_manager_base.h" 15 #include "sync/internal_api/sync_rollback_manager_base.h"
13 16
14 class GURL; 17 class GURL;
15 18
16 namespace syncer { 19 namespace syncer {
17 20
18 // SyncRollbackManager restores user's data to pre-sync state using backup 21 // SyncRollbackManager restores user's data to pre-sync state using backup
19 // DB created by SyncBackupManager. 22 // DB created by SyncBackupManager.
20 class SYNC_EXPORT SyncRollbackManager : public SyncRollbackManagerBase { 23 class SYNC_EXPORT SyncRollbackManager : public SyncRollbackManagerBase {
21 public: 24 public:
22 SyncRollbackManager(); 25 SyncRollbackManager();
23 ~SyncRollbackManager() override; 26 ~SyncRollbackManager() override;
24 27
25 // SyncManager implementation. 28 // SyncManager implementation.
26 void Init(InitArgs* args) override; 29 void Init(InitArgs* args) override;
27 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info, 30 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info,
28 base::Time last_poll_time) override; 31 base::Time last_poll_time) override;
29 32
30 private: 33 private:
31 // Deletes specified entries in local model. 34 // Deletes specified entries in local model.
32 SyncerError DeleteOnWorkerThread(ModelType type, std::vector<int64> handles); 35 SyncerError DeleteOnWorkerThread(ModelType type,
36 std::vector<int64_t> handles);
33 37
34 void NotifyRollbackDone(); 38 void NotifyRollbackDone();
35 39
36 std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker> > workers_; 40 std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker> > workers_;
37 41
38 SyncManager::ChangeDelegate* change_delegate_; 42 SyncManager::ChangeDelegate* change_delegate_;
39 43
40 // Types that can be rolled back. 44 // Types that can be rolled back.
41 ModelTypeSet rollback_ready_types_; 45 ModelTypeSet rollback_ready_types_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManager); 47 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManager);
44 }; 48 };
45 49
46 } // namespace syncer 50 } // namespace syncer
47 51
48 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ 52 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/internal_api/sync_rollback_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698