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

Side by Side Diff: chrome/browser/sync/glue/android_invalidator_bridge_proxy.h

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 9 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_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_
6 #define CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "sync/notifier/invalidator.h" 10 #include "sync/notifier/invalidator.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 // Does not take ownership of |bridge|. 24 // Does not take ownership of |bridge|.
25 explicit AndroidInvalidatorBridgeProxy(AndroidInvalidatorBridge* bridge); 25 explicit AndroidInvalidatorBridgeProxy(AndroidInvalidatorBridge* bridge);
26 virtual ~AndroidInvalidatorBridgeProxy(); 26 virtual ~AndroidInvalidatorBridgeProxy();
27 27
28 // Invalidator implementation. Passes through all calls to the bridge. 28 // Invalidator implementation. Passes through all calls to the bridge.
29 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; 29 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE;
30 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler, 30 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler,
31 const syncer::ObjectIdSet& ids) OVERRIDE; 31 const syncer::ObjectIdSet& ids) OVERRIDE;
32 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; 32 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE;
33 virtual void Acknowledge(const invalidation::ObjectId& id,
34 const syncer::AckHandle& ack_handle) OVERRIDE;
33 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; 35 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
34 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 36 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
35 virtual void UpdateCredentials( 37 virtual void UpdateCredentials(
36 const std::string& email, const std::string& token) OVERRIDE; 38 const std::string& email, const std::string& token) OVERRIDE;
37 virtual void SendInvalidation( 39 virtual void SendInvalidation(
38 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 40 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
39 41
40 private: 42 private:
41 // The notification bridge that we forward to but don't own. 43 // The notification bridge that we forward to but don't own.
42 AndroidInvalidatorBridge* const bridge_; 44 AndroidInvalidatorBridge* const bridge_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(AndroidInvalidatorBridgeProxy); 46 DISALLOW_COPY_AND_ASSIGN(AndroidInvalidatorBridgeProxy);
45 }; 47 };
46 48
47 } // namespace browser_sync 49 } // namespace browser_sync
48 50
49 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ 51 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/android_invalidator_bridge.cc ('k') | chrome/browser/sync/glue/android_invalidator_bridge_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698