| 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 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |