OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Interface to the invalidator, which is an object that receives | 5 // Interface to the invalidator, which is an object that receives |
6 // invalidations for registered object IDs. The corresponding | 6 // invalidations for registered object IDs. The corresponding |
7 // InvalidationHandler is notifier when such an event occurs. | 7 // InvalidationHandler is notifier when such an event occurs. |
8 | 8 |
9 #ifndef COMPONENTS_INVALIDATION_INVALIDATOR_H_ | 9 #ifndef COMPONENTS_INVALIDATION_INVALIDATOR_H_ |
10 #define COMPONENTS_INVALIDATION_INVALIDATOR_H_ | 10 #define COMPONENTS_INVALIDATION_INVALIDATOR_H_ |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "components/invalidation/invalidation_export.h" | 15 #include "components/invalidation/invalidation_export.h" |
16 #include "sync/internal_api/public/base/invalidation_util.h" | 16 #include "components/invalidation/invalidation_util.h" |
17 #include "sync/internal_api/public/base/invalidator_state.h" | 17 #include "components/invalidation/invalidator_state.h" |
18 #include "sync/internal_api/public/base/model_type.h" | |
19 | 18 |
20 namespace syncer { | 19 namespace syncer { |
21 class InvalidationHandler; | 20 class InvalidationHandler; |
22 | 21 |
23 class INVALIDATION_EXPORT Invalidator { | 22 class INVALIDATION_EXPORT Invalidator { |
24 public: | 23 public: |
25 Invalidator(); | 24 Invalidator(); |
26 virtual ~Invalidator(); | 25 virtual ~Invalidator(); |
27 | 26 |
28 // Clients should follow the pattern below: | 27 // Clients should follow the pattern below: |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void UpdateCredentials( | 79 virtual void UpdateCredentials( |
81 const std::string& email, const std::string& token) = 0; | 80 const std::string& email, const std::string& token) = 0; |
82 | 81 |
83 // Requests internal detailed status to be posted back to the callback. | 82 // Requests internal detailed status to be posted back to the callback. |
84 virtual void RequestDetailedStatus( | 83 virtual void RequestDetailedStatus( |
85 base::Callback<void(const base::DictionaryValue&)> callback) const = 0; | 84 base::Callback<void(const base::DictionaryValue&)> callback) const = 0; |
86 }; | 85 }; |
87 } // namespace syncer | 86 } // namespace syncer |
88 | 87 |
89 #endif // COMPONENTS_INVALIDATION_INVALIDATOR_H_ | 88 #endif // COMPONENTS_INVALIDATION_INVALIDATOR_H_ |
OLD | NEW |