| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const syncer::SyncCredentials& credentials, | 70 const syncer::SyncCredentials& credentials, |
| 71 bool delete_sync_data_folder, | 71 bool delete_sync_data_folder, |
| 72 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 72 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, |
| 73 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& | 73 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& |
| 74 unrecoverable_error_handler, | 74 unrecoverable_error_handler, |
| 75 const base::Closure& report_unrecoverable_error_function, | 75 const base::Closure& report_unrecoverable_error_function, |
| 76 syncer::NetworkResources* network_resources, | 76 syncer::NetworkResources* network_resources, |
| 77 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> | 77 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> |
| 78 saved_nigori_state) = 0; | 78 saved_nigori_state) = 0; |
| 79 | 79 |
| 80 // Called on the frontend's thread to trigger a refresh. |
| 81 virtual void TriggerRefresh(const syncer::ModelTypeSet& types) = 0; |
| 82 |
| 80 // Called on the frontend's thread to update SyncCredentials. | 83 // Called on the frontend's thread to update SyncCredentials. |
| 81 virtual void UpdateCredentials( | 84 virtual void UpdateCredentials( |
| 82 const syncer::SyncCredentials& credentials) = 0; | 85 const syncer::SyncCredentials& credentials) = 0; |
| 83 | 86 |
| 84 // This starts the SyncerThread running a Syncer object to communicate with | 87 // This starts the SyncerThread running a Syncer object to communicate with |
| 85 // sync servers. Until this is called, no changes will leave or enter this | 88 // sync servers. Until this is called, no changes will leave or enter this |
| 86 // browser from the cloud / sync servers. | 89 // browser from the cloud / sync servers. |
| 87 // Called on |frontend_loop_|. | 90 // Called on |frontend_loop_|. |
| 88 virtual void StartSyncingWithServer() = 0; | 91 virtual void StartSyncingWithServer() = 0; |
| 89 | 92 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // See SyncManager::ClearServerData. | 230 // See SyncManager::ClearServerData. |
| 228 virtual void ClearServerData( | 231 virtual void ClearServerData( |
| 229 const syncer::SyncManager::ClearServerDataCallback& callback) = 0; | 232 const syncer::SyncManager::ClearServerDataCallback& callback) = 0; |
| 230 | 233 |
| 231 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 234 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 232 }; | 235 }; |
| 233 | 236 |
| 234 } // namespace browser_sync | 237 } // namespace browser_sync |
| 235 | 238 |
| 236 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 239 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |