Description[Sync] Eliminate friends from Directory by exposing kernel via accessor
This is a minor refactoring of Directory that eliminates non-test
friends and provides access to Directory's kernel using public accessor
methods.
Make Directory::Close private as it's automatically called from the
dtor.
Make Directory::Kernel public instead of having Directory be-friend
several classes.
Make Directory::Kernel::mutex mutable to eliminate the need for a
const_cast in ScopedKernelLock.
Make OnDiskDirectoryBackingStore::TryLoad private.
BUG=475557
Committed: https://crrev.com/089b9366f4cb360bda3245d8c831e3362bfc839c
Cr-Commit-Position: refs/heads/master@{#323850}
Patch Set 1 #Patch Set 2 : Update comments and reorder struct Kernel definition. #Patch Set 3 : Remove unnecessary type qualifier on kernel()'s return type. #
Total comments: 2
Patch Set 4 : Changes from review. #
Messages
Total messages: 11 (3 generated)
|