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

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

Issue 2687353003: Created SerializableUserDataManager. (Closed)
Patch Set: Eugene's comments 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/session_storage_builder.h
diff --git a/ios/web/navigation/session_storage_builder.h b/ios/web/navigation/session_storage_builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f4c2b9d1f8c706ac6771dfae91009199c8669dc
--- /dev/null
+++ b/ios/web/navigation/session_storage_builder.h
@@ -0,0 +1,28 @@
+// 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 CRWSessionStorage;
+
+namespace web {
+
+class WebStateImpl;
+
+// Class that can serialize and deserialize session information.
+class SessionStorageBuilder {
+ public:
+ // Creates a serializable session storage from |web_state|.
+ CRWSessionStorage* BuildStorage(WebStateImpl* web_state) const;
+ // Populates |web_state| with |storage|'s session information.
+ void ExtractSessionState(WebStateImpl* web_state,
+ CRWSessionStorage* storage) const;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
« no previous file with comments | « ios/web/navigation/serializable_user_data_manager_impl.mm ('k') | ios/web/navigation/session_storage_builder.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698