OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ |
6 #define COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ | 6 #define COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // error to call this when we don't have pending keys. | 159 // error to call this when we don't have pending keys. |
160 virtual void SetDecryptionPassphrase(const std::string& passphrase) = 0; | 160 virtual void SetDecryptionPassphrase(const std::string& passphrase) = 0; |
161 | 161 |
162 // Enables encryption of all datatypes. | 162 // Enables encryption of all datatypes. |
163 virtual void EnableEncryptEverything() = 0; | 163 virtual void EnableEncryptEverything() = 0; |
164 | 164 |
165 // Whether encryption of all datatypes is enabled. If false, only sensitive | 165 // Whether encryption of all datatypes is enabled. If false, only sensitive |
166 // types are encrypted. | 166 // types are encrypted. |
167 virtual bool IsEncryptEverythingEnabled() const = 0; | 167 virtual bool IsEncryptEverythingEnabled() const = 0; |
168 | 168 |
169 // Returns the current state of the passphrase needed to decrypt the | |
170 // bag of encryption keys in the nigori node. | |
171 virtual PassphraseType GetPassphraseType() const = 0; | |
172 | |
173 // The set of types that are always encrypted. | 169 // The set of types that are always encrypted. |
174 static ModelTypeSet SensitiveTypes(); | 170 static ModelTypeSet SensitiveTypes(); |
175 }; | 171 }; |
176 | 172 |
177 } // namespace syncer | 173 } // namespace syncer |
178 | 174 |
179 #endif // COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ | 175 #endif // COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ |
OLD | NEW |