Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: ios/web/navigation/serializable_user_data_manager_impl.h

Issue 2693523003: Moved TabID implementation to SerializableUserData. (Closed)
Patch Set: fix compile Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
« no previous file with comments | « ios/web/navigation/crw_session_controller.mm ('k') | ios/web/navigation/serializable_user_data_manager_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698