OLD | NEW |
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 #include "sync/internal_api/sync_backup_manager.h" | 5 #include "sync/internal_api/sync_backup_manager.h" |
6 | 6 |
7 #include "sync/internal_api/public/read_node.h" | 7 #include "sync/internal_api/public/read_node.h" |
8 #include "sync/internal_api/public/write_transaction.h" | 8 #include "sync/internal_api/public/write_transaction.h" |
9 #include "sync/syncable/directory.h" | 9 #include "sync/syncable/directory.h" |
10 #include "sync/syncable/mutable_entry.h" | 10 #include "sync/syncable/mutable_entry.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 namespace syncer { | 13 namespace syncer { |
14 | 14 |
15 SyncBackupManager::SyncBackupManager() | 15 SyncBackupManager::SyncBackupManager() |
16 : in_normalization_(false) { | 16 : in_normalization_(false) { |
17 } | 17 } |
18 | 18 |
19 SyncBackupManager::~SyncBackupManager() { | 19 SyncBackupManager::~SyncBackupManager() { |
20 } | 20 } |
21 | 21 |
22 void SyncBackupManager::Init(InitArgs* args) { | 22 void SyncBackupManager::Init(InitArgs* args) { |
23 if (SyncRollbackManagerBase::InitInternal( | 23 if (SyncRollbackManagerBase::InitInternal( |
24 args->database_location, | 24 args->database_location, |
25 args->internal_components_factory.get(), | 25 args->internal_components_factory.get(), |
26 InternalComponentsFactory::STORAGE_ON_DISK_DEFERRED, | 26 InternalComponentsFactory::STORAGE_ON_DISK_DEFERRED, |
27 args->unrecoverable_error_handler.Pass(), | 27 args->unrecoverable_error_handler, |
28 args->report_unrecoverable_error_function)) { | 28 args->report_unrecoverable_error_function)) { |
29 GetUserShare()->directory->CollectMetaHandleCounts( | 29 GetUserShare()->directory->CollectMetaHandleCounts( |
30 &status_.num_entries_by_type, &status_.num_to_delete_entries_by_type); | 30 &status_.num_entries_by_type, &status_.num_to_delete_entries_by_type); |
31 | 31 |
32 HideSyncPreference(PRIORITY_PREFERENCES); | 32 HideSyncPreference(PRIORITY_PREFERENCES); |
33 HideSyncPreference(PREFERENCES); | 33 HideSyncPreference(PREFERENCES); |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 void SyncBackupManager::SaveChanges() { | 37 void SyncBackupManager::SaveChanges() { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 bool SyncBackupManager::HasDirectoryTypeDebugInfoObserver( | 139 bool SyncBackupManager::HasDirectoryTypeDebugInfoObserver( |
140 syncer::TypeDebugInfoObserver* observer) { return false; } | 140 syncer::TypeDebugInfoObserver* observer) { return false; } |
141 | 141 |
142 void SyncBackupManager::RequestEmitDebugInfo() {} | 142 void SyncBackupManager::RequestEmitDebugInfo() {} |
143 | 143 |
144 void SyncBackupManager::ClearServerData( | 144 void SyncBackupManager::ClearServerData( |
145 const ClearServerDataCallback& callback) {} | 145 const ClearServerDataCallback& callback) {} |
146 | 146 |
147 } // namespace syncer | 147 } // namespace syncer |
OLD | NEW |