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 #ifndef COMPONENTS_INVALIDATION_IMPL_INVALIDATION_LOGGER_H_ | 5 #ifndef COMPONENTS_INVALIDATION_IMPL_INVALIDATION_LOGGER_H_ |
6 #define COMPONENTS_INVALIDATION_IMPL_INVALIDATION_LOGGER_H_ | 6 #define COMPONENTS_INVALIDATION_IMPL_INVALIDATION_LOGGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "components/invalidation/public/invalidation_util.h" | 13 #include "components/invalidation/public/invalidation_util.h" |
14 #include "components/invalidation/public/invalidator_state.h" | 14 #include "components/invalidation/public/invalidator_state.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class DictionaryValue; | 17 class DictionaryValue; |
18 } // namespace base | 18 } // namespace base |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 class InvalidationHandler; | |
22 class ObjectIdInvalidationMap; | 21 class ObjectIdInvalidationMap; |
23 } // namespace syncer | 22 } // namespace syncer |
24 | 23 |
25 namespace invalidation { | 24 namespace invalidation { |
26 | 25 |
27 class InvalidationLoggerObserver; | 26 class InvalidationLoggerObserver; |
28 | 27 |
29 // This class is in charge of logging invalidation-related information. | 28 // This class is in charge of logging invalidation-related information. |
30 // It is used store the state of the InvalidatorService that owns this object | 29 // It is used store the state of the InvalidatorService that owns this object |
31 // and then rebroadcast it to observers than can display it accordingly | 30 // and then rebroadcast it to observers than can display it accordingly |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // necessarily the same as the keys of latest_ids_, because they might | 92 // necessarily the same as the keys of latest_ids_, because they might |
94 // have not registered any object id). | 93 // have not registered any object id). |
95 std::multiset<std::string> registered_handlers_; | 94 std::multiset<std::string> registered_handlers_; |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(InvalidationLogger); | 96 DISALLOW_COPY_AND_ASSIGN(InvalidationLogger); |
98 }; | 97 }; |
99 | 98 |
100 } // namespace invalidation | 99 } // namespace invalidation |
101 | 100 |
102 #endif // COMPONENTS_INVALIDATION_IMPL_INVALIDATION_LOGGER_H_ | 101 #endif // COMPONENTS_INVALIDATION_IMPL_INVALIDATION_LOGGER_H_ |
OLD | NEW |