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

Side by Side Diff: sync/sessions/model_type_registry.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 SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ 5 #ifndef SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
6 #define SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ 6 #define SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // The set of enabled directory types. 144 // The set of enabled directory types.
145 ModelTypeSet enabled_directory_types_; 145 ModelTypeSet enabled_directory_types_;
146 146
147 // The set of observers of per-type debug info. 147 // The set of observers of per-type debug info.
148 // 148 //
149 // Each of the DirectoryTypeDebugInfoEmitters needs such a list. There's 149 // Each of the DirectoryTypeDebugInfoEmitters needs such a list. There's
150 // a lot of them, and their lifetimes are unpredictable, so it makes the 150 // a lot of them, and their lifetimes are unpredictable, so it makes the
151 // book-keeping easier if we just store the list here. That way it's 151 // book-keeping easier if we just store the list here. That way it's
152 // guaranteed to live as long as this sync backend. 152 // guaranteed to live as long as this sync backend.
153 ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; 153 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_;
154 154
155 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; 155 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); 157 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry);
158 }; 158 };
159 159
160 } // namespace syncer 160 } // namespace syncer
161 161
162 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ 162 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
OLDNEW
« no previous file with comments | « sync/sessions/directory_type_debug_info_emitter.cc ('k') | sync/sessions/sync_session_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698