Descriptionsync: Add ModelNeutralMutableEntry
Add a ModelNeutralMutableEntry that exists between Entry and
MutableEntry in the hierarchy of syncable::Entry classes.
This new class inherits all of Entry's getter methods, so it can has the
same ability to read from entries as the current Entry and MutableEntry
classes.
All the setter methods from MutableEntry that are not model-changing
have been moved into ModelNeutralMutableEntry. The non-model-changing
setters are those whose mutations do not need to be communicated to the
model-specific change processors.
Because we know can guarantee all changes made through the
ModelNeutralMutabeEntry functions will not need to be relayed to the
change processors, it would be safe to skip calling SaveOriginal() in
its setter functions. For now, though, we leave these setter functions
unmodified.
BUG=284672
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225052
Patch Set 1 #Patch Set 2 : Rename #Patch Set 3 : Add missing files #
Total comments: 12
Patch Set 4 : Fixes from review comments #
Total comments: 4
Patch Set 5 : Fix nits #
Messages
Total messages: 10 (0 generated)
|