Descriptionsync: Introduce CryptographerProvider interface
Creates a CryptographerProvider interface that can be used to expose the
syncable::Directory's Cryptographer without exposing the directory
itself. Since the directory's cryptographer is protected by a lock,
this requires the creation of several helper classes to manage the
acquistion of the lock.
This CL includes the interface, an implementationthat exposes the
directory's cryptographer (DirectoryCryptographerProvider) and
a SimpleCryptographerProvider that wraps a non-owned Cryptographer for
testing purposes.
These interfaces will be used to implement and test encryption of
non-blocking sync types.
BUG=351005
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285777
Patch Set 1 #Patch Set 2 : Typo fix and small cleanup #
Total comments: 7
Patch Set 3 : Fix namespace braces #Patch Set 4 : s/ScopedCryptographer/ScopedCryptographerRef/ #
Total comments: 6
Patch Set 5 : Renames #
Messages
Total messages: 14 (0 generated)
|