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

Side by Side Diff: sync/sessions/model_type_registry.h

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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
« no previous file with comments | « content/browser/appcache/appcache_group.cc ('k') | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Simple getters. 90 // Simple getters.
91 UpdateHandlerMap* update_handler_map(); 91 UpdateHandlerMap* update_handler_map();
92 CommitContributorMap* commit_contributor_map(); 92 CommitContributorMap* commit_contributor_map();
93 DirectoryTypeDebugInfoEmitterMap* directory_type_debug_info_emitter_map(); 93 DirectoryTypeDebugInfoEmitterMap* directory_type_debug_info_emitter_map();
94 94
95 void RegisterDirectoryTypeDebugInfoObserver( 95 void RegisterDirectoryTypeDebugInfoObserver(
96 syncer::TypeDebugInfoObserver* observer); 96 syncer::TypeDebugInfoObserver* observer);
97 void UnregisterDirectoryTypeDebugInfoObserver( 97 void UnregisterDirectoryTypeDebugInfoObserver(
98 syncer::TypeDebugInfoObserver* observer); 98 syncer::TypeDebugInfoObserver* observer);
99 bool HasDirectoryTypeDebugInfoObserver( 99 bool HasDirectoryTypeDebugInfoObserver(
100 syncer::TypeDebugInfoObserver* observer); 100 const syncer::TypeDebugInfoObserver* observer) const;
101 void RequestEmitDebugInfo(); 101 void RequestEmitDebugInfo();
102 102
103 base::WeakPtr<SyncContext> AsWeakPtr(); 103 base::WeakPtr<SyncContext> AsWeakPtr();
104 104
105 private: 105 private:
106 void OnEncryptionStateChanged(); 106 void OnEncryptionStateChanged();
107 107
108 ModelTypeSet GetEnabledNonBlockingTypes() const; 108 ModelTypeSet GetEnabledNonBlockingTypes() const;
109 ModelTypeSet GetEnabledDirectoryTypes() const; 109 ModelTypeSet GetEnabledDirectoryTypes() const;
110 110
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; 156 ObserverList<TypeDebugInfoObserver> type_debug_info_observers_;
157 157
158 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; 158 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_;
159 159
160 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); 160 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry);
161 }; 161 };
162 162
163 } // namespace syncer 163 } // namespace syncer
164 164
165 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ 165 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_group.cc ('k') | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698