| Index: ios/web/navigation/serialized_user_data_manager_impl.h
|
| diff --git a/ios/web/navigation/serialized_user_data_manager_impl.h b/ios/web/navigation/serialized_user_data_manager_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6c0e8537b30b80c02abba978fb007452509b9432
|
| --- /dev/null
|
| +++ b/ios/web/navigation/serialized_user_data_manager_impl.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_WEB_NAVIGATION_SERIALIZED_USER_DATA_MANAGER_IMPL_H_
|
| +#define IOS_WEB_NAVIGATION_SERIALIZED_USER_DATA_MANAGER_IMPL_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +#include "base/mac/scoped_nsobject.h"
|
| +#include "ios/web/public/serialized_user_data_manager.h"
|
| +
|
| +namespace web {
|
| +
|
| +class SerializedUserDataManagerImpl : public SerializedUserDataManager {
|
| + public:
|
| + SerializedUserDataManagerImpl();
|
| + ~SerializedUserDataManagerImpl() override;
|
| +
|
| + // SerializedUserDataManager:
|
| + void SetValueForSerializationKey(SerializedUserDataType data,
|
| + NSString* serialization_key) override;
|
| + SerializedUserDataType GetValueForSerializationKey(
|
| + NSString* serialization_key) const override;
|
| + NSDictionary* GetSerializationDictionary() const override;
|
| + void AddValuesFromDictionary(NSDictionary* dictionary) override;
|
| +
|
| + private:
|
| + // The dictionary holding serializable user data.
|
| + base::scoped_nsobject<NSMutableDictionary> user_data_;
|
| +};
|
| +
|
| +} // namespace web
|
| +
|
| +#endif // IOS_WEB_NAVIGATION_SERIALIZED_USER_DATA_MANAGER_IMPL_H_
|
|
|