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

Side by Side Diff: ios/web/navigation/navigation_manager_impl.mm

Issue 2823623002: Remove usage of Tab's |url| property from TabModel. (Closed)
Patch Set: test + formatting fixes Created 3 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "ios/web/navigation/navigation_manager_impl.h" 5 #import "ios/web/navigation/navigation_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 last_non_native_item->GetUserAgentType() != UserAgentType::NONE); 205 last_non_native_item->GetUserAgentType() != UserAgentType::NONE);
206 if (last_non_native_item) { 206 if (last_non_native_item) {
207 pending_item->SetUserAgentType( 207 pending_item->SetUserAgentType(
208 last_non_native_item->GetUserAgentType()); 208 last_non_native_item->GetUserAgentType());
209 } 209 }
210 break; 210 break;
211 } 211 }
212 } 212 }
213 } 213 }
214 214
215 void NavigationManagerImpl::CommitPendingItem() {
216 [session_controller_ commitPendingItem];
217 }
218
215 BrowserState* NavigationManagerImpl::GetBrowserState() const { 219 BrowserState* NavigationManagerImpl::GetBrowserState() const {
216 return browser_state_; 220 return browser_state_;
217 } 221 }
218 222
219 WebState* NavigationManagerImpl::GetWebState() const { 223 WebState* NavigationManagerImpl::GetWebState() const {
220 return delegate_->GetWebState(); 224 return delegate_->GetWebState();
221 } 225 }
222 226
223 NavigationItem* NavigationManagerImpl::GetVisibleItem() const { 227 NavigationItem* NavigationManagerImpl::GetVisibleItem() const {
224 return [session_controller_ visibleItem]; 228 return [session_controller_ visibleItem];
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 const ScopedNavigationItemImplList& items = [session_controller_ items]; 443 const ScopedNavigationItemImplList& items = [session_controller_ items];
440 while (index >= 0) { 444 while (index >= 0) {
441 NavigationItem* item = items[index--].get(); 445 NavigationItem* item = items[index--].get();
442 if (!client->IsAppSpecificURL(item->GetVirtualURL())) 446 if (!client->IsAppSpecificURL(item->GetVirtualURL()))
443 return item; 447 return item;
444 } 448 }
445 return nullptr; 449 return nullptr;
446 } 450 }
447 451
448 } // namespace web 452 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698