| Index: ios/web/navigation/navigation_manager_storage_builder.h
|
| diff --git a/ios/web/navigation/navigation_manager_storage_builder.h b/ios/web/navigation/navigation_manager_storage_builder.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0934327154b1513f04185d8e000b58b0fe047fee
|
| --- /dev/null
|
| +++ b/ios/web/navigation/navigation_manager_storage_builder.h
|
| @@ -0,0 +1,29 @@
|
| +// 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_NAVIGATION_MANAGER_BUILDER_H_
|
| +#define IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
|
| +
|
| +#include <memory>
|
| +
|
| +@class CRWNavigationManagerStorage;
|
| +
|
| +namespace web {
|
| +
|
| +class NavigationManagerImpl;
|
| +
|
| +// Class that can serialize and deserialize NavigationManagers.
|
| +class NavigationManagerStorageBuilder {
|
| + public:
|
| + // Creates a serialized NavigationManager from |navigation_manager|.
|
| + CRWNavigationManagerStorage* BuildSerialization(
|
| + NavigationManagerImpl* navigation_manager) const;
|
| + // Creates a NavigationManager from |navigation_manager_storage|.
|
| + std::unique_ptr<NavigationManagerImpl> BuildNavigationManagerImpl(
|
| + CRWNavigationManagerStorage* navigation_manager_storage) const;
|
| +};
|
| +
|
| +} // namespace web
|
| +
|
| +#endif // IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
|
|
|