| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // be enabled. | 419 // be enabled. |
| 420 // Note: opens a transaction. May be called on any thread. | 420 // Note: opens a transaction. May be called on any thread. |
| 421 virtual bool ReceivedExperiment(Experiments* experiments) = 0; | 421 virtual bool ReceivedExperiment(Experiments* experiments) = 0; |
| 422 | 422 |
| 423 // Uses a read-only transaction to determine if the directory being synced has | 423 // Uses a read-only transaction to determine if the directory being synced has |
| 424 // any remaining unsynced items. May be called on any thread. | 424 // any remaining unsynced items. May be called on any thread. |
| 425 virtual bool HasUnsyncedItems() = 0; | 425 virtual bool HasUnsyncedItems() = 0; |
| 426 | 426 |
| 427 // Returns the SyncManager's encryption handler. | 427 // Returns the SyncManager's encryption handler. |
| 428 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 428 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
| 429 |
| 430 // Ask the SyncManager to fetch updates for the given types. |
| 431 virtual void RefreshTypes(ModelTypeSet types) = 0; |
| 429 }; | 432 }; |
| 430 | 433 |
| 431 } // namespace syncer | 434 } // namespace syncer |
| 432 | 435 |
| 433 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 436 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |