| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |