| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_NAVIGATION_SERIALIZED_USER_DATA_MANAGER_IMPL_H_ |
| 6 #define IOS_WEB_NAVIGATION_SERIALIZED_USER_DATA_MANAGER_IMPL_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "ios/web/public/serialized_user_data_manager.h" |
| 12 |
| 13 namespace web { |
| 14 |
| 15 class SerializedUserDataManagerImpl : public SerializedUserDataManager { |
| 16 public: |
| 17 SerializedUserDataManagerImpl(); |
| 18 ~SerializedUserDataManagerImpl() override; |
| 19 |
| 20 // SerializedUserDataManager: |
| 21 void SetValueForSerializationKey(SerializedUserDataType data, |
| 22 NSString* serialization_key) override; |
| 23 SerializedUserDataType GetValueForSerializationKey( |
| 24 NSString* serialization_key) const override; |
| 25 NSDictionary* GetSerializationDictionary() const override; |
| 26 void AddValuesFromDictionary(NSDictionary* dictionary) override; |
| 27 |
| 28 private: |
| 29 // The dictionary holding serializable user data. |
| 30 base::scoped_nsobject<NSMutableDictionary> user_data_; |
| 31 }; |
| 32 |
| 33 } // namespace web |
| 34 |
| 35 #endif // IOS_WEB_NAVIGATION_SERIALIZED_USER_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |