OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 // InvalidationFrontend implementation. It is an error to have | 563 // InvalidationFrontend implementation. It is an error to have |
564 // registered handlers when Shutdown() is called. | 564 // registered handlers when Shutdown() is called. |
565 virtual void RegisterInvalidationHandler( | 565 virtual void RegisterInvalidationHandler( |
566 syncer::InvalidationHandler* handler) OVERRIDE; | 566 syncer::InvalidationHandler* handler) OVERRIDE; |
567 virtual void UpdateRegisteredInvalidationIds( | 567 virtual void UpdateRegisteredInvalidationIds( |
568 syncer::InvalidationHandler* handler, | 568 syncer::InvalidationHandler* handler, |
569 const syncer::ObjectIdSet& ids) OVERRIDE; | 569 const syncer::ObjectIdSet& ids) OVERRIDE; |
570 virtual void UnregisterInvalidationHandler( | 570 virtual void UnregisterInvalidationHandler( |
571 syncer::InvalidationHandler* handler) OVERRIDE; | 571 syncer::InvalidationHandler* handler) OVERRIDE; |
| 572 virtual void AcknowledgeInvalidation( |
| 573 const invalidation::ObjectId& id, |
| 574 const syncer::AckHandle& ack_handle) OVERRIDE; |
| 575 |
572 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 576 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
573 | 577 |
574 // ProfileKeyedService implementation. This must be called exactly | 578 // ProfileKeyedService implementation. This must be called exactly |
575 // once (before this object is destroyed). | 579 // once (before this object is destroyed). |
576 virtual void Shutdown() OVERRIDE; | 580 virtual void Shutdown() OVERRIDE; |
577 | 581 |
578 // Simulate an incoming notification for the given id and payload. | 582 // Simulate an incoming notification for the given id and payload. |
579 void EmitInvalidationForTest( | 583 void EmitInvalidationForTest( |
580 const invalidation::ObjectId& id, | 584 const invalidation::ObjectId& id, |
581 const std::string& payload); | 585 const std::string& payload); |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_; | 871 scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_; |
868 | 872 |
869 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 873 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
870 }; | 874 }; |
871 | 875 |
872 bool ShouldShowActionOnUI( | 876 bool ShouldShowActionOnUI( |
873 const syncer::SyncProtocolError& error); | 877 const syncer::SyncProtocolError& error); |
874 | 878 |
875 | 879 |
876 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 880 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |