| 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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // Note: opens a transaction. May be called on any thread. | 345 // Note: opens a transaction. May be called on any thread. |
| 346 virtual bool ReceivedExperiment(Experiments* experiments) = 0; | 346 virtual bool ReceivedExperiment(Experiments* experiments) = 0; |
| 347 | 347 |
| 348 // Uses a read-only transaction to determine if the directory being synced has | 348 // Uses a read-only transaction to determine if the directory being synced has |
| 349 // any remaining unsynced items. May be called on any thread. | 349 // any remaining unsynced items. May be called on any thread. |
| 350 virtual bool HasUnsyncedItems() = 0; | 350 virtual bool HasUnsyncedItems() = 0; |
| 351 | 351 |
| 352 // Returns the SyncManager's encryption handler. | 352 // Returns the SyncManager's encryption handler. |
| 353 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 353 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
| 354 | 354 |
| 355 virtual scoped_ptr<base::ListValue> GetAllNodesForType( |
| 356 syncer::ModelType type) = 0; |
| 357 |
| 355 // Ask the SyncManager to fetch updates for the given types. | 358 // Ask the SyncManager to fetch updates for the given types. |
| 356 virtual void RefreshTypes(ModelTypeSet types) = 0; | 359 virtual void RefreshTypes(ModelTypeSet types) = 0; |
| 357 | 360 |
| 358 // Returns any buffered protocol events. Does not clear the buffer. | 361 // Returns any buffered protocol events. Does not clear the buffer. |
| 359 virtual ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() = 0; | 362 virtual ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() = 0; |
| 360 }; | 363 }; |
| 361 | 364 |
| 362 } // namespace syncer | 365 } // namespace syncer |
| 363 | 366 |
| 364 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 367 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |