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

Unified Diff: ios/web/navigation/navigation_manager_impl.mm

Issue 2740233002: Remove CRWSessionController usage from BrowserViewController. (Closed)
Patch Set: Created 3 years, 9 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/navigation_manager_impl.mm
diff --git a/ios/web/navigation/navigation_manager_impl.mm b/ios/web/navigation/navigation_manager_impl.mm
index 76c60465eed16d8f95eb060d4ad4700a747af76b..f609eb2f97ea0dbbec8bab39a7e73bba5e38adfc 100644
--- a/ios/web/navigation/navigation_manager_impl.mm
+++ b/ios/web/navigation/navigation_manager_impl.mm
@@ -337,6 +337,14 @@ bool AreURLsInPageNavigation(const GURL& existing_url, const GURL& new_url) {
delegate_->GoToIndex(index);
}
+NavigationItemList NavigationManagerImpl::GetBackwardItems() const {
+ return [session_controller_ backwardItems];
+}
+
+NavigationItemList NavigationManagerImpl::GetForwardItems() const {
+ return [session_controller_ forwardItems];
+}
+
void NavigationManagerImpl::Reload(bool check_for_reposts) {
// Navigation manager may be empty if the only pending item failed to load
// with SSL error and the user has decided not to proceed.
@@ -350,6 +358,14 @@ bool AreURLsInPageNavigation(const GURL& existing_url, const GURL& new_url) {
delegate_->GetWebState()->OpenURL(params);
}
+void NavigationManagerImpl::InsertStateFromManager(
+ const NavigationManager* manager) {
+ DCHECK(manager);
+ CRWSessionController* other_session =
+ static_cast<const NavigationManagerImpl*>(manager)->session_controller_;
+ [session_controller_ insertStateFromSessionController:other_session];
+}
+
std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>>
NavigationManagerImpl::GetTransientURLRewriters() {
return std::move(transient_url_rewriters_);

Powered by Google App Engine
This is Rietveld 408576698