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

Side by Side Diff: chrome/browser/invalidation/invalidation_service_android.h

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_
6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ 6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_ANDROID_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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 30 matching lines...) Expand all
41 // Note that this implementation does not properly support Ack-tracking, 41 // Note that this implementation does not properly support Ack-tracking,
42 // fetching the invalidator state, or querying the client's ID. Support for 42 // fetching the invalidator state, or querying the client's ID. Support for
43 // exposing the client ID should be available soon; see crbug.com/172391. 43 // exposing the client ID should be available soon; see crbug.com/172391.
44 virtual void RegisterInvalidationHandler( 44 virtual void RegisterInvalidationHandler(
45 syncer::InvalidationHandler* handler) OVERRIDE; 45 syncer::InvalidationHandler* handler) OVERRIDE;
46 virtual void UpdateRegisteredInvalidationIds( 46 virtual void UpdateRegisteredInvalidationIds(
47 syncer::InvalidationHandler* handler, 47 syncer::InvalidationHandler* handler,
48 const syncer::ObjectIdSet& ids) OVERRIDE; 48 const syncer::ObjectIdSet& ids) OVERRIDE;
49 virtual void UnregisterInvalidationHandler( 49 virtual void UnregisterInvalidationHandler(
50 syncer::InvalidationHandler* handler) OVERRIDE; 50 syncer::InvalidationHandler* handler) OVERRIDE;
51 virtual void AcknowledgeInvalidation(
52 const invalidation::ObjectId& id,
53 const syncer::AckHandle& ack_handle) OVERRIDE;
54 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; 51 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
55 virtual std::string GetInvalidatorClientId() const OVERRIDE; 52 virtual std::string GetInvalidatorClientId() const OVERRIDE;
56 53
57 // content::NotificationObserver implementation. 54 // content::NotificationObserver implementation.
58 virtual void Observe(int type, 55 virtual void Observe(int type,
59 const content::NotificationSource& source, 56 const content::NotificationSource& source,
60 const content::NotificationDetails& details) OVERRIDE; 57 const content::NotificationDetails& details) OVERRIDE;
61 58
62 // The InvalidationServiceAndroid always reports that it is enabled. 59 // The InvalidationServiceAndroid always reports that it is enabled.
63 // This is used only by unit tests. 60 // This is used only by unit tests.
64 void TriggerStateChangeForTest(syncer::InvalidatorState state); 61 void TriggerStateChangeForTest(syncer::InvalidatorState state);
65 62
66 private: 63 private:
67 syncer::InvalidatorRegistrar invalidator_registrar_; 64 syncer::InvalidatorRegistrar invalidator_registrar_;
68 content::NotificationRegistrar registrar_; 65 content::NotificationRegistrar registrar_;
69 syncer::InvalidatorState invalidator_state_; 66 syncer::InvalidatorState invalidator_state_;
70 scoped_ptr<InvalidationControllerAndroid> invalidation_controller_; 67 scoped_ptr<InvalidationControllerAndroid> invalidation_controller_;
71 68
72 DISALLOW_COPY_AND_ASSIGN(InvalidationServiceAndroid); 69 DISALLOW_COPY_AND_ASSIGN(InvalidationServiceAndroid);
73 }; 70 };
74 71
75 } // namespace invalidation 72 } // namespace invalidation
76 73
77 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ 74 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/invalidation_service.h ('k') | chrome/browser/invalidation/invalidation_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698