| 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_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_ |
| 6 #define SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_ | 6 #define SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, | 109 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, |
| 110 SetKeystoreAfterReceivingMigratedNigori); | 110 SetKeystoreAfterReceivingMigratedNigori); |
| 111 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, | 111 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, |
| 112 SetCustomPassAfterMigration); | 112 SetCustomPassAfterMigration); |
| 113 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, | 113 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, |
| 114 SetCustomPassAfterMigrationNoKeystoreKey); | 114 SetCustomPassAfterMigrationNoKeystoreKey); |
| 115 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, | 115 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, |
| 116 SetImplicitPassAfterMigrationNoKeystoreKey); | 116 SetImplicitPassAfterMigrationNoKeystoreKey); |
| 117 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, | 117 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, |
| 118 MigrateOnEncryptEverythingKeystorePassphrase); | 118 MigrateOnEncryptEverythingKeystorePassphrase); |
| 119 FRIEND_TEST_ALL_PREFIXES(SyncEncryptionHandlerImplTest, |
| 120 ReceiveMigratedNigoriWithOldPassphrase); |
| 119 | 121 |
| 120 // Container for members that require thread safety protection. All members | 122 // Container for members that require thread safety protection. All members |
| 121 // that can be accessed from more than one thread should be held here and | 123 // that can be accessed from more than one thread should be held here and |
| 122 // accessed via UnlockVault(..) and UnlockVaultMutable(..), which enforce | 124 // accessed via UnlockVault(..) and UnlockVaultMutable(..), which enforce |
| 123 // that a transaction is held. | 125 // that a transaction is held. |
| 124 struct Vault { | 126 struct Vault { |
| 125 Vault(Encryptor* encryptor, ModelTypeSet encrypted_types); | 127 Vault(Encryptor* encryptor, ModelTypeSet encrypted_types); |
| 126 ~Vault(); | 128 ~Vault(); |
| 127 | 129 |
| 128 // Sync's cryptographer. Used for encrypting and decrypting sync data. | 130 // Sync's cryptographer. Used for encrypting and decrypting sync data. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 289 |
| 288 // The time (in ms) the nigori was migrated to support keystore encryption. | 290 // The time (in ms) the nigori was migrated to support keystore encryption. |
| 289 int64 migration_time_ms_; | 291 int64 migration_time_ms_; |
| 290 | 292 |
| 291 DISALLOW_COPY_AND_ASSIGN(SyncEncryptionHandlerImpl); | 293 DISALLOW_COPY_AND_ASSIGN(SyncEncryptionHandlerImpl); |
| 292 }; | 294 }; |
| 293 | 295 |
| 294 } // namespace syncer | 296 } // namespace syncer |
| 295 | 297 |
| 296 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_ENCRYPTION_HANDLER_IMPL_H_ | 298 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_ENCRYPTION_HANDLER_IMPL_H_ |
| OLD | NEW |