| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; | 201 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; |
| 202 | 202 |
| 203 // Disables protocol event forwarding. | 203 // Disables protocol event forwarding. |
| 204 virtual void DisableProtocolEventForwarding() = 0; | 204 virtual void DisableProtocolEventForwarding() = 0; |
| 205 | 205 |
| 206 // Returns a ListValue representing all nodes for the specified types through | 206 // Returns a ListValue representing all nodes for the specified types through |
| 207 // |callback| on this thread. | 207 // |callback| on this thread. |
| 208 virtual void GetAllNodesForTypes( | 208 virtual void GetAllNodesForTypes( |
| 209 syncer::ModelTypeSet types, | 209 syncer::ModelTypeSet types, |
| 210 base::Callback<void(const std::vector<syncer::ModelType>&, | 210 base::Callback<void(const std::vector<syncer::ModelType>&, |
| 211 ScopedVector<base::ListValue>)> type) = 0; | 211 std::vector<std::unique_ptr<base::ListValue>>)> |
| 212 type) = 0; |
| 212 | 213 |
| 213 // Enables the sending of directory type debug counters. Also, for every | 214 // Enables the sending of directory type debug counters. Also, for every |
| 214 // time it is called, it makes an explicit request that updates to an update | 215 // time it is called, it makes an explicit request that updates to an update |
| 215 // for all counters be emitted. | 216 // for all counters be emitted. |
| 216 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0; | 217 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0; |
| 217 | 218 |
| 218 // Disables the sending of directory type debug counters. | 219 // Disables the sending of directory type debug counters. |
| 219 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; | 220 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; |
| 220 | 221 |
| 221 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; | 222 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; |
| 222 | 223 |
| 223 // Triggers sync cycle to update |types|. | 224 // Triggers sync cycle to update |types|. |
| 224 virtual void RefreshTypesForTest(syncer::ModelTypeSet types) = 0; | 225 virtual void RefreshTypesForTest(syncer::ModelTypeSet types) = 0; |
| 225 | 226 |
| 226 // See SyncManager::ClearServerData. | 227 // See SyncManager::ClearServerData. |
| 227 virtual void ClearServerData( | 228 virtual void ClearServerData( |
| 228 const syncer::SyncManager::ClearServerDataCallback& callback) = 0; | 229 const syncer::SyncManager::ClearServerDataCallback& callback) = 0; |
| 229 | 230 |
| 230 // Notify the syncer that the cookie jar has changed. | 231 // Notify the syncer that the cookie jar has changed. |
| 231 // See SyncManager::OnCookieJarChanged. | 232 // See SyncManager::OnCookieJarChanged. |
| 232 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 233 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
| 233 | 234 |
| 234 private: | 235 private: |
| 235 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 236 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 236 }; | 237 }; |
| 237 | 238 |
| 238 } // namespace browser_sync | 239 } // namespace browser_sync |
| 239 | 240 |
| 240 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 241 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |