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

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

Issue 477813002: Revert of Let SyncBackupManager keep backup data in memory until shutdown. Only persist (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_BACKUP_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_BACKUP_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_BACKUP_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_BACKUP_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "sync/internal_api/sync_rollback_manager_base.h" 10 #include "sync/internal_api/sync_rollback_manager_base.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 14
15 // SyncBackupManager runs before user signs in to sync to back up user's data 15 // SyncBackupManager runs before user signs in to sync to back up user's data
16 // before sync starts. The data that's backed up can be used to restore user's 16 // before sync starts. The data that's backed up can be used to restore user's
17 // settings to pre-sync state. 17 // settings to pre-sync state.
18 class SYNC_EXPORT_PRIVATE SyncBackupManager : public SyncRollbackManagerBase { 18 class SYNC_EXPORT_PRIVATE SyncBackupManager : public SyncRollbackManagerBase {
19 public: 19 public:
20 SyncBackupManager(); 20 SyncBackupManager();
21 virtual ~SyncBackupManager(); 21 virtual ~SyncBackupManager();
22 22
23 // SyncManager implementation. 23 // SyncManager implementation.
24 virtual void Init(InitArgs* args) OVERRIDE; 24 virtual void Init(InitArgs* args) OVERRIDE;
25 virtual void SaveChanges() OVERRIDE; 25 virtual void SaveChanges() OVERRIDE;
26 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 26 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
27 virtual void ShutdownOnSyncThread(ShutdownReason reason) OVERRIDE;
28 27
29 // DirectoryChangeDelegate implementation. 28 // DirectoryChangeDelegate implementation.
30 virtual ModelTypeSet HandleTransactionEndingChangeEvent( 29 virtual ModelTypeSet HandleTransactionEndingChangeEvent(
31 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 30 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
32 syncable::BaseTransaction* trans) OVERRIDE; 31 syncable::BaseTransaction* trans) OVERRIDE;
33 32
34 virtual void RegisterDirectoryTypeDebugInfoObserver( 33 virtual void RegisterDirectoryTypeDebugInfoObserver(
35 syncer::TypeDebugInfoObserver* observer) OVERRIDE; 34 syncer::TypeDebugInfoObserver* observer) OVERRIDE;
36 virtual void UnregisterDirectoryTypeDebugInfoObserver( 35 virtual void UnregisterDirectoryTypeDebugInfoObserver(
37 syncer::TypeDebugInfoObserver* observer) OVERRIDE; 36 syncer::TypeDebugInfoObserver* observer) OVERRIDE;
(...skipping 19 matching lines...) Expand all
57 bool in_normalization_; 56 bool in_normalization_;
58 57
59 SyncStatus status_; 58 SyncStatus status_;
60 59
61 DISALLOW_COPY_AND_ASSIGN(SyncBackupManager); 60 DISALLOW_COPY_AND_ASSIGN(SyncBackupManager);
62 }; 61 };
63 62
64 } // namespace syncer 63 } // namespace syncer
65 64
66 #endif // SYNC_INTERNAL_API_SYNC_BACKUP_MANAGER_H_ 65 #endif // SYNC_INTERNAL_API_SYNC_BACKUP_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/test_internal_components_factory.h ('k') | sync/internal_api/sync_backup_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698