| Index: ios/web/navigation/serializable_user_data_manager_impl.h
|
| diff --git a/ios/web/navigation/serializable_user_data_manager_impl.h b/ios/web/navigation/serializable_user_data_manager_impl.h
|
| index 38fa1fb1c6402eef9bf6ef2602fc7d75256912b6..f29dc1fb2d2edcb458d16b2d9af5ba2e2a70a052 100644
|
| --- a/ios/web/navigation/serializable_user_data_manager_impl.h
|
| +++ b/ios/web/navigation/serializable_user_data_manager_impl.h
|
| @@ -26,9 +26,20 @@ class SerializableUserDataImpl : public SerializableUserData {
|
| NSDictionary* data() { return data_; };
|
|
|
| private:
|
| + // Decodes the values that were previously encoded using CRWSessionStorage's
|
| + // NSCoding implementation and returns an NSDictionary using the new
|
| + // serialization keys.
|
| + // TODO(crbug.com/691800): Remove legacy support.
|
| + NSDictionary* GetDecodedLegacyValues(NSCoder* coder);
|
| +
|
| // The dictionary passed on initialization. After calling Decode(), this will
|
| // contain the data that is decoded from the NSCoder.
|
| base::scoped_nsobject<NSDictionary> data_;
|
| + // Some values that were previously persisted directly in CRWSessionStorage
|
| + // are now serialized using SerializableUserData, and this dictionary is used
|
| + // to decode these values. The keys are the legacy encoding keys, and the
|
| + // values are their corresponding serializable user data keys.
|
| + base::scoped_nsobject<NSDictionary> legacy_key_conversions_;
|
| };
|
|
|
| class SerializableUserDataManagerImpl : public SerializableUserDataManager {
|
|
|