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

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

Issue 263273002: Add a ClientAction used by SyncRollbackManager to notify PSS that rollback is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 ReportUnrecoverableErrorFunction 40 ReportUnrecoverableErrorFunction
41 report_unrecoverable_error_function, 41 report_unrecoverable_error_function,
42 CancelationSignal* cancelation_signal) OVERRIDE; 42 CancelationSignal* cancelation_signal) OVERRIDE;
43 virtual void StartSyncingNormally( 43 virtual void StartSyncingNormally(
44 const ModelSafeRoutingInfo& routing_info) OVERRIDE; 44 const ModelSafeRoutingInfo& routing_info) OVERRIDE;
45 45
46 private: 46 private:
47 // Deletes specified entries in local model. 47 // Deletes specified entries in local model.
48 SyncerError DeleteOnWorkerThread(ModelType type, std::vector<int64> handles); 48 SyncerError DeleteOnWorkerThread(ModelType type, std::vector<int64> handles);
49 49
50 void NotifyRollbackDone();
51
50 std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker> > workers_; 52 std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker> > workers_;
51 53
52 SyncManager::ChangeDelegate* change_delegate_; 54 SyncManager::ChangeDelegate* change_delegate_;
53 55
54 // Types that can be rolled back. 56 // Types that can be rolled back.
55 ModelTypeSet rollback_ready_types_; 57 ModelTypeSet rollback_ready_types_;
56 58
57 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManager); 59 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManager);
58 }; 60 };
59 61
60 } // namespace syncer 62 } // namespace syncer
61 63
62 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ 64 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | sync/internal_api/sync_rollback_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698