| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 SYNC_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ | 5 #ifndef SYNC_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ |
| 6 #define SYNC_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ | 6 #define SYNC_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 bool NeedKeystoreKey(syncable::BaseTransaction* const trans) const override; | 48 bool NeedKeystoreKey(syncable::BaseTransaction* const trans) const override; |
| 49 bool SetKeystoreKeys( | 49 bool SetKeystoreKeys( |
| 50 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys, | 50 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys, |
| 51 syncable::BaseTransaction* const trans) override; | 51 syncable::BaseTransaction* const trans) override; |
| 52 ModelTypeSet GetEncryptedTypes( | 52 ModelTypeSet GetEncryptedTypes( |
| 53 syncable::BaseTransaction* const trans) const override; | 53 syncable::BaseTransaction* const trans) const override; |
| 54 | 54 |
| 55 Cryptographer* cryptographer() { return &cryptographer_; } | 55 Cryptographer* cryptographer() { return &cryptographer_; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 ObserverList<SyncEncryptionHandler::Observer> observers_; | 58 base::ObserverList<SyncEncryptionHandler::Observer> observers_; |
| 59 ModelTypeSet encrypted_types_; | 59 ModelTypeSet encrypted_types_; |
| 60 bool encrypt_everything_; | 60 bool encrypt_everything_; |
| 61 PassphraseType passphrase_type_; | 61 PassphraseType passphrase_type_; |
| 62 | 62 |
| 63 FakeEncryptor encryptor_; | 63 FakeEncryptor encryptor_; |
| 64 Cryptographer cryptographer_; | 64 Cryptographer cryptographer_; |
| 65 std::string keystore_key_; | 65 std::string keystore_key_; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace syncer | 68 } // namespace syncer |
| 69 | 69 |
| 70 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ | 70 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ |
| OLD | NEW |