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

Unified Diff: ios/web/public/web_state/web_state.h

Issue 1360993002: Moved NavigationManagerImpl serialization out of CRWSessionController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compilation fix after rebase Created 3 years, 11 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
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.mm ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/web_state.h
diff --git a/ios/web/public/web_state/web_state.h b/ios/web/public/web_state/web_state.h
index cb31708c492e1c35c175c38871a1731f9e39ba58..75f6e79774bd69fbf482fe967ef4ddb5c2fc80d5 100644
--- a/ios/web/public/web_state/web_state.h
+++ b/ios/web/public/web_state/web_state.h
@@ -24,6 +24,7 @@ class GURL;
class SkBitmap;
@class CRWJSInjectionReceiver;
+@class CRWNavigationManagerStorage;
@protocol CRWScrollableContent;
@protocol CRWWebViewProxy;
typedef id<CRWWebViewProxy> CRWWebViewProxyType;
@@ -98,6 +99,10 @@ class WebState : public base::SupportsUserData {
// Creates a new WebState.
static std::unique_ptr<WebState> Create(const CreateParams& params);
+ // Creates a new WebState from a serialized NavigationManager.
+ static std::unique_ptr<WebState> Create(
+ const CreateParams& params,
+ CRWNavigationManagerStorage* session_storage);
~WebState() override {}
@@ -135,6 +140,10 @@ class WebState : public base::SupportsUserData {
virtual const NavigationManager* GetNavigationManager() const = 0;
virtual NavigationManager* GetNavigationManager() = 0;
+ // Creates a serialized version of the NavigationManager. The returned value
+ // is autoreleased.
+ virtual CRWNavigationManagerStorage* BuildSerializedNavigationManager() = 0;
+
// Gets the CRWJSInjectionReceiver associated with this WebState.
virtual CRWJSInjectionReceiver* GetJSInjectionReceiver() const = 0;
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.mm ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698