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 CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ |
6 #define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ | 6 #define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // OAuth2TokenService::Observer implementation | 78 // OAuth2TokenService::Observer implementation |
79 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 79 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; |
80 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; | 80 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; |
81 | 81 |
82 // syncer::InvalidationHandler implementation. | 82 // syncer::InvalidationHandler implementation. |
83 virtual void OnInvalidatorStateChange( | 83 virtual void OnInvalidatorStateChange( |
84 syncer::InvalidatorState state) OVERRIDE; | 84 syncer::InvalidatorState state) OVERRIDE; |
85 virtual void OnIncomingInvalidation( | 85 virtual void OnIncomingInvalidation( |
86 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 86 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 87 virtual std::string GetOwnerName() const OVERRIDE; |
87 | 88 |
88 // Overrides BrowserContextKeyedService method. | 89 // Overrides BrowserContextKeyedService method. |
89 virtual void Shutdown() OVERRIDE; | 90 virtual void Shutdown() OVERRIDE; |
90 | 91 |
91 protected: | 92 protected: |
92 // Initializes with an injected invalidator. | 93 // Initializes with an injected invalidator. |
93 void InitForTest(syncer::Invalidator* invalidator); | 94 void InitForTest(syncer::Invalidator* invalidator); |
94 | 95 |
95 friend class TiclInvalidationServiceTestDelegate; | 96 friend class TiclInvalidationServiceTestDelegate; |
96 | 97 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // The invalidation logger object we use to record state changes | 132 // The invalidation logger object we use to record state changes |
132 // and invalidations. | 133 // and invalidations. |
133 InvalidationLogger logger_; | 134 InvalidationLogger logger_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); | 136 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace invalidation | 139 } // namespace invalidation |
139 | 140 |
140 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ | 141 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ |
OLD | NEW |