| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_vector.h" |
| 15 #include "base/task_runner.h" | 16 #include "base/task_runner.h" |
| 16 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
| 17 #include "sync/base/sync_export.h" | 18 #include "sync/base/sync_export.h" |
| 18 #include "sync/internal_api/public/base/model_type.h" | 19 #include "sync/internal_api/public/base/model_type.h" |
| 19 #include "sync/internal_api/public/change_record.h" | 20 #include "sync/internal_api/public/change_record.h" |
| 20 #include "sync/internal_api/public/configure_reason.h" | 21 #include "sync/internal_api/public/configure_reason.h" |
| 21 #include "sync/internal_api/public/engine/model_safe_worker.h" | 22 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 22 #include "sync/internal_api/public/engine/sync_status.h" | 23 #include "sync/internal_api/public/engine/sync_status.h" |
| 23 #include "sync/internal_api/public/events/protocol_event.h" | 24 #include "sync/internal_api/public/events/protocol_event.h" |
| 24 #include "sync/internal_api/public/sync_encryption_handler.h" | 25 #include "sync/internal_api/public/sync_encryption_handler.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 343 |
| 343 // Uses a read-only transaction to determine if the directory being synced has | 344 // Uses a read-only transaction to determine if the directory being synced has |
| 344 // any remaining unsynced items. May be called on any thread. | 345 // any remaining unsynced items. May be called on any thread. |
| 345 virtual bool HasUnsyncedItems() = 0; | 346 virtual bool HasUnsyncedItems() = 0; |
| 346 | 347 |
| 347 // Returns the SyncManager's encryption handler. | 348 // Returns the SyncManager's encryption handler. |
| 348 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 349 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
| 349 | 350 |
| 350 // Ask the SyncManager to fetch updates for the given types. | 351 // Ask the SyncManager to fetch updates for the given types. |
| 351 virtual void RefreshTypes(ModelTypeSet types) = 0; | 352 virtual void RefreshTypes(ModelTypeSet types) = 0; |
| 353 |
| 354 // Returns any buffered protocol events. Does not clear the buffer. |
| 355 virtual ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() = 0; |
| 352 }; | 356 }; |
| 353 | 357 |
| 354 } // namespace syncer | 358 } // namespace syncer |
| 355 | 359 |
| 356 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 360 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |