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

Side by Side Diff: ios/web/navigation/navigation_manager_storage_builder.h

Issue 2664113003: Moved serialization out of CRWSessionEntry. (Closed)
Patch Set: BuildSerialization => BuildStorage, entries => itemStorages 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_ 5 #ifndef IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
6 #define IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_ 6 #define IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 @class CRWNavigationManagerStorage; 10 @class CRWNavigationManagerStorage;
11 11
12 namespace web { 12 namespace web {
13 13
14 class NavigationManagerImpl; 14 class NavigationManagerImpl;
15 15
16 // Class that can serialize and deserialize NavigationManagers. 16 // Class that can serialize and deserialize NavigationManagers.
17 class NavigationManagerStorageBuilder { 17 class NavigationManagerStorageBuilder {
18 public: 18 public:
19 // Creates a serialized NavigationManager from |navigation_manager|. 19 // Creates a serialized NavigationManager from |navigation_manager|.
20 CRWNavigationManagerStorage* BuildSerialization( 20 CRWNavigationManagerStorage* BuildStorage(
21 NavigationManagerImpl* navigation_manager) const; 21 NavigationManagerImpl* navigation_manager) const;
22 // Creates a NavigationManager from |navigation_manager_storage|. 22 // Creates a NavigationManager from |navigation_manager_storage|.
23 std::unique_ptr<NavigationManagerImpl> BuildNavigationManagerImpl( 23 std::unique_ptr<NavigationManagerImpl> BuildNavigationManagerImpl(
24 CRWNavigationManagerStorage* navigation_manager_storage) const; 24 CRWNavigationManagerStorage* navigation_manager_storage) const;
25 }; 25 };
26 26
27 } // namespace web 27 } // namespace web
28 28
29 #endif // IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_ 29 #endif // IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698