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

Side by Side Diff: components/invalidation/invalidator_registrar.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months 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
OLDNEW
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_INVALIDATOR_REGISTRAR_H_ 5 #ifndef COMPONENTS_INVALIDATION_INVALIDATOR_REGISTRAR_H_
6 #define COMPONENTS_INVALIDATION_INVALIDATOR_REGISTRAR_H_ 6 #define COMPONENTS_INVALIDATION_INVALIDATOR_REGISTRAR_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 bool IsHandlerRegisteredForTest(const InvalidationHandler* handler) const; 79 bool IsHandlerRegisteredForTest(const InvalidationHandler* handler) const;
80 80
81 // Needed for death tests. 81 // Needed for death tests.
82 void DetachFromThreadForTest(); 82 void DetachFromThreadForTest();
83 83
84 private: 84 private:
85 typedef std::map<InvalidationHandler*, ObjectIdSet> HandlerIdsMap; 85 typedef std::map<InvalidationHandler*, ObjectIdSet> HandlerIdsMap;
86 86
87 base::ThreadChecker thread_checker_; 87 base::ThreadChecker thread_checker_;
88 ObserverList<InvalidationHandler, true> handlers_; 88 base::ObserverList<InvalidationHandler, true> handlers_;
89 HandlerIdsMap handler_to_ids_map_; 89 HandlerIdsMap handler_to_ids_map_;
90 InvalidatorState state_; 90 InvalidatorState state_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(InvalidatorRegistrar); 92 DISALLOW_COPY_AND_ASSIGN(InvalidatorRegistrar);
93 }; 93 };
94 94
95 } // namespace syncer 95 } // namespace syncer
96 96
97 #endif // COMPONENTS_INVALIDATION_INVALIDATOR_REGISTRAR_H_ 97 #endif // COMPONENTS_INVALIDATION_INVALIDATOR_REGISTRAR_H_
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_logger.h ('k') | components/invalidation/sync_system_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698