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

Side by Side Diff: ios/web/web_state/web_state_impl.mm

Issue 1838323003: [ios] Added NavigationManager::LoadURLWithParams public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ios/web/web_state/web_state_impl.h" 5 #include "ios/web/web_state/web_state_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 } 545 }
546 546
547 #pragma mark - NavigationManagerDelegate implementation 547 #pragma mark - NavigationManagerDelegate implementation
548 548
549 // Mirror WebContentsImpl::NavigateToPendingEntry() so that 549 // Mirror WebContentsImpl::NavigateToPendingEntry() so that
550 // NavigationControllerIO::GoBack() actually goes back. 550 // NavigationControllerIO::GoBack() actually goes back.
551 void WebStateImpl::NavigateToPendingEntry() { 551 void WebStateImpl::NavigateToPendingEntry() {
552 [web_controller_ loadCurrentURL]; 552 [web_controller_ loadCurrentURL];
553 } 553 }
554 554
555 void WebStateImpl::LoadURLWithParams(
556 const NavigationManager::WebLoadParams& params) {
557 [web_controller_ loadWithParams:params];
558 }
559
555 void WebStateImpl::OnNavigationItemsPruned(size_t pruned_item_count) { 560 void WebStateImpl::OnNavigationItemsPruned(size_t pruned_item_count) {
556 FOR_EACH_OBSERVER(WebStateObserver, observers_, 561 FOR_EACH_OBSERVER(WebStateObserver, observers_,
557 NavigationItemsPruned(pruned_item_count)); 562 NavigationItemsPruned(pruned_item_count));
558 } 563 }
559 564
560 void WebStateImpl::OnNavigationItemChanged() { 565 void WebStateImpl::OnNavigationItemChanged() {
561 FOR_EACH_OBSERVER(WebStateObserver, observers_, NavigationItemChanged()); 566 FOR_EACH_OBSERVER(WebStateObserver, observers_, NavigationItemChanged());
562 } 567 }
563 568
564 void WebStateImpl::OnNavigationItemCommitted( 569 void WebStateImpl::OnNavigationItemCommitted(
565 const LoadCommittedDetails& load_details) { 570 const LoadCommittedDetails& load_details) {
566 FOR_EACH_OBSERVER(WebStateObserver, observers_, 571 FOR_EACH_OBSERVER(WebStateObserver, observers_,
567 NavigationItemCommitted(load_details)); 572 NavigationItemCommitted(load_details));
568 } 573 }
569 574
570 WebState* WebStateImpl::GetWebState() { 575 WebState* WebStateImpl::GetWebState() {
571 return this; 576 return this;
572 } 577 }
573 578
574 } // namespace web 579 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698