Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(774)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restart test + more cleanup Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698