| 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 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // Helper to enable encrypt everything, notifying observers if necessary. | 256 // Helper to enable encrypt everything, notifying observers if necessary. |
| 257 // Will not perform re-encryption. | 257 // Will not perform re-encryption. |
| 258 void EnableEncryptEverythingImpl(syncable::BaseTransaction* const trans); | 258 void EnableEncryptEverythingImpl(syncable::BaseTransaction* const trans); |
| 259 | 259 |
| 260 // If an explicit passphrase is in use, returns the time at which it was set | 260 // If an explicit passphrase is in use, returns the time at which it was set |
| 261 // (if known). Else return base::Time(). | 261 // (if known). Else return base::Time(). |
| 262 base::Time GetExplicitPassphraseTime() const; | 262 base::Time GetExplicitPassphraseTime() const; |
| 263 | 263 |
| 264 base::ThreadChecker thread_checker_; | 264 base::ThreadChecker thread_checker_; |
| 265 | 265 |
| 266 ObserverList<SyncEncryptionHandler::Observer> observers_; | 266 base::ObserverList<SyncEncryptionHandler::Observer> observers_; |
| 267 | 267 |
| 268 // The current user share (for creating transactions). | 268 // The current user share (for creating transactions). |
| 269 UserShare* user_share_; | 269 UserShare* user_share_; |
| 270 | 270 |
| 271 // Container for all data that can be accessed from multiple threads. Do not | 271 // Container for all data that can be accessed from multiple threads. Do not |
| 272 // access this object directly. Instead access it via UnlockVault(..) and | 272 // access this object directly. Instead access it via UnlockVault(..) and |
| 273 // UnlockVaultMutable(..). | 273 // UnlockVaultMutable(..). |
| 274 Vault vault_unsafe_; | 274 Vault vault_unsafe_; |
| 275 | 275 |
| 276 // Sync encryption state that is only modified and accessed from the sync | 276 // Sync encryption state that is only modified and accessed from the sync |
| (...skipping 27 matching lines...) Expand all Loading... |
| 304 base::Time custom_passphrase_time_; | 304 base::Time custom_passphrase_time_; |
| 305 | 305 |
| 306 base::WeakPtrFactory<SyncEncryptionHandlerImpl> weak_ptr_factory_; | 306 base::WeakPtrFactory<SyncEncryptionHandlerImpl> weak_ptr_factory_; |
| 307 | 307 |
| 308 DISALLOW_COPY_AND_ASSIGN(SyncEncryptionHandlerImpl); | 308 DISALLOW_COPY_AND_ASSIGN(SyncEncryptionHandlerImpl); |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 } // namespace syncer | 311 } // namespace syncer |
| 312 | 312 |
| 313 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_ENCRYPTION_HANDLER_IMPL_H_ | 313 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_ENCRYPTION_HANDLER_IMPL_H_ |
| OLD | NEW |