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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
329 const base::Closure& ready_task, | 329 const base::Closure& ready_task, |
330 const base::Closure& retry_task) = 0; | 330 const base::Closure& retry_task) = 0; |
331 | 331 |
332 // Inform the syncer of a change in the invalidator's state. | 332 // Inform the syncer of a change in the invalidator's state. |
333 virtual void OnInvalidatorStateChange(InvalidatorState state) = 0; | 333 virtual void OnInvalidatorStateChange(InvalidatorState state) = 0; |
334 | 334 |
335 // Inform the syncer that its cached information about a type is obsolete. | 335 // Inform the syncer that its cached information about a type is obsolete. |
336 virtual void OnIncomingInvalidation( | 336 virtual void OnIncomingInvalidation( |
337 const ObjectIdInvalidationMap& invalidation_map) = 0; | 337 const ObjectIdInvalidationMap& invalidation_map) = 0; |
338 | 338 |
339 // Returns whoever has constructed this object, for logging purposes. | |
340 virtual std::string GetOwnerName() = 0; | |
Nicolas Zea
2014/02/11 20:54:11
What calls this? Does it need to be part of the Sy
mferreria_g
2014/02/11 21:23:38
Removed. Hadn't realized that, since it was alread
| |
341 | |
339 // Adds a listener to be notified of sync events. | 342 // Adds a listener to be notified of sync events. |
340 // NOTE: It is OK (in fact, it's probably a good idea) to call this before | 343 // NOTE: It is OK (in fact, it's probably a good idea) to call this before |
341 // having received OnInitializationCompleted. | 344 // having received OnInitializationCompleted. |
342 virtual void AddObserver(Observer* observer) = 0; | 345 virtual void AddObserver(Observer* observer) = 0; |
343 | 346 |
344 // Remove the given observer. Make sure to call this if the | 347 // Remove the given observer. Make sure to call this if the |
345 // Observer is being destroyed so the SyncManager doesn't | 348 // Observer is being destroyed so the SyncManager doesn't |
346 // potentially dereference garbage. | 349 // potentially dereference garbage. |
347 virtual void RemoveObserver(Observer* observer) = 0; | 350 virtual void RemoveObserver(Observer* observer) = 0; |
348 | 351 |
(...skipping 26 matching lines...) Expand all Loading... | |
375 // Returns the SyncManager's encryption handler. | 378 // Returns the SyncManager's encryption handler. |
376 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 379 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
377 | 380 |
378 // Ask the SyncManager to fetch updates for the given types. | 381 // Ask the SyncManager to fetch updates for the given types. |
379 virtual void RefreshTypes(ModelTypeSet types) = 0; | 382 virtual void RefreshTypes(ModelTypeSet types) = 0; |
380 }; | 383 }; |
381 | 384 |
382 } // namespace syncer | 385 } // namespace syncer |
383 | 386 |
384 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 387 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |