OLD | NEW |
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 COMPONENTS_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ | 5 #ifndef COMPONENTS_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ |
6 #define COMPONENTS_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ | 6 #define COMPONENTS_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 InvalidationServiceAndroid(jobject context); | 32 InvalidationServiceAndroid(jobject context); |
33 virtual ~InvalidationServiceAndroid(); | 33 virtual ~InvalidationServiceAndroid(); |
34 | 34 |
35 // InvalidationService implementation. | 35 // InvalidationService implementation. |
36 // | 36 // |
37 // Note that this implementation does not properly support Ack-tracking, | 37 // Note that this implementation does not properly support Ack-tracking, |
38 // fetching the invalidator state, or querying the client's ID. Support for | 38 // fetching the invalidator state, or querying the client's ID. Support for |
39 // exposing the client ID should be available soon; see crbug.com/172391. | 39 // exposing the client ID should be available soon; see crbug.com/172391. |
40 virtual void RegisterInvalidationHandler( | 40 virtual void RegisterInvalidationHandler( |
41 syncer::InvalidationHandler* handler) OVERRIDE; | 41 syncer::InvalidationHandler* handler) override; |
42 virtual void UpdateRegisteredInvalidationIds( | 42 virtual void UpdateRegisteredInvalidationIds( |
43 syncer::InvalidationHandler* handler, | 43 syncer::InvalidationHandler* handler, |
44 const syncer::ObjectIdSet& ids) OVERRIDE; | 44 const syncer::ObjectIdSet& ids) override; |
45 virtual void UnregisterInvalidationHandler( | 45 virtual void UnregisterInvalidationHandler( |
46 syncer::InvalidationHandler* handler) OVERRIDE; | 46 syncer::InvalidationHandler* handler) override; |
47 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 47 virtual syncer::InvalidatorState GetInvalidatorState() const override; |
48 virtual std::string GetInvalidatorClientId() const OVERRIDE; | 48 virtual std::string GetInvalidatorClientId() const override; |
49 virtual InvalidationLogger* GetInvalidationLogger() OVERRIDE; | 49 virtual InvalidationLogger* GetInvalidationLogger() override; |
50 virtual void RequestDetailedStatus( | 50 virtual void RequestDetailedStatus( |
51 base::Callback<void(const base::DictionaryValue&)> caller) const | 51 base::Callback<void(const base::DictionaryValue&)> caller) const |
52 OVERRIDE; | 52 override; |
53 virtual IdentityProvider* GetIdentityProvider() OVERRIDE; | 53 virtual IdentityProvider* GetIdentityProvider() override; |
54 | 54 |
55 void RequestSync(JNIEnv* env, | 55 void RequestSync(JNIEnv* env, |
56 jobject obj, | 56 jobject obj, |
57 jint object_source, | 57 jint object_source, |
58 jstring object_id, | 58 jstring object_id, |
59 jlong version, | 59 jlong version, |
60 jstring state); | 60 jstring state); |
61 | 61 |
62 void RequestSyncForAllTypes(JNIEnv* env, jobject obj); | 62 void RequestSyncForAllTypes(JNIEnv* env, jobject obj); |
63 | 63 |
(...skipping 29 matching lines...) Expand all Loading... |
93 | 93 |
94 void DispatchInvalidations( | 94 void DispatchInvalidations( |
95 syncer::ObjectIdInvalidationMap& object_invalidation_map); | 95 syncer::ObjectIdInvalidationMap& object_invalidation_map); |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(InvalidationServiceAndroid); | 97 DISALLOW_COPY_AND_ASSIGN(InvalidationServiceAndroid); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace invalidation | 100 } // namespace invalidation |
101 | 101 |
102 #endif // COMPONENTS_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ | 102 #endif // COMPONENTS_INVALIDATION_INVALIDATION_SERVICE_ANDROID_H_ |
OLD | NEW |