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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 const sync_pb::EncryptedData& pending_keys) override; | 76 const sync_pb::EncryptedData& pending_keys) override; |
77 void OnPassphraseAccepted() override; | 77 void OnPassphraseAccepted() override; |
78 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, | 78 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, |
79 BootstrapTokenType type) override; | 79 BootstrapTokenType type) override; |
80 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, | 80 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, |
81 bool encrypt_everything) override; | 81 bool encrypt_everything) override; |
82 void OnEncryptionComplete() override; | 82 void OnEncryptionComplete() override; |
83 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; | 83 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; |
84 void OnPassphraseTypeChanged(PassphraseType type, | 84 void OnPassphraseTypeChanged(PassphraseType type, |
85 base::Time passphrase_time) override; | 85 base::Time passphrase_time) override; |
| 86 void OnLocalSetPassphraseEncryption( |
| 87 const SyncEncryptionHandler::NigoriState& nigori_state) override; |
86 | 88 |
87 // Gets the set of enabled types. | 89 // Gets the set of enabled types. |
88 ModelTypeSet GetEnabledTypes() const; | 90 ModelTypeSet GetEnabledTypes() const; |
89 | 91 |
90 // Simple getters. | 92 // Simple getters. |
91 UpdateHandlerMap* update_handler_map(); | 93 UpdateHandlerMap* update_handler_map(); |
92 CommitContributorMap* commit_contributor_map(); | 94 CommitContributorMap* commit_contributor_map(); |
93 DirectoryTypeDebugInfoEmitterMap* directory_type_debug_info_emitter_map(); | 95 DirectoryTypeDebugInfoEmitterMap* directory_type_debug_info_emitter_map(); |
94 | 96 |
95 void RegisterDirectoryTypeDebugInfoObserver( | 97 void RegisterDirectoryTypeDebugInfoObserver( |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; | 155 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; |
154 | 156 |
155 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; | 157 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); | 159 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); |
158 }; | 160 }; |
159 | 161 |
160 } // namespace syncer | 162 } // namespace syncer |
161 | 163 |
162 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ | 164 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ |
OLD | NEW |