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