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

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

Issue 2741413007: Refactoring Reload in NavigationManager and CRWWebController. (Closed)
Patch Set: fixed more check_for_repost errors 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 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/web_state/web_state_impl.h" 5 #import "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/logging.h" 10 #include "base/logging.h"
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 725
726 void WebStateImpl::GoToIndex(int index) { 726 void WebStateImpl::GoToIndex(int index) {
727 [web_controller_ goToItemAtIndex:index]; 727 [web_controller_ goToItemAtIndex:index];
728 } 728 }
729 729
730 void WebStateImpl::LoadURLWithParams( 730 void WebStateImpl::LoadURLWithParams(
731 const NavigationManager::WebLoadParams& params) { 731 const NavigationManager::WebLoadParams& params) {
732 [web_controller_ loadWithParams:params]; 732 [web_controller_ loadWithParams:params];
733 } 733 }
734 734
735 void WebStateImpl::Reload() {
736 [web_controller_ reload];
737 }
738
735 void WebStateImpl::OnNavigationItemsPruned(size_t pruned_item_count) { 739 void WebStateImpl::OnNavigationItemsPruned(size_t pruned_item_count) {
736 for (auto& observer : observers_) 740 for (auto& observer : observers_)
737 observer.NavigationItemsPruned(pruned_item_count); 741 observer.NavigationItemsPruned(pruned_item_count);
738 } 742 }
739 743
740 void WebStateImpl::OnNavigationItemChanged() { 744 void WebStateImpl::OnNavigationItemChanged() {
741 for (auto& observer : observers_) 745 for (auto& observer : observers_)
742 observer.NavigationItemChanged(); 746 observer.NavigationItemChanged();
743 } 747 }
744 748
745 void WebStateImpl::OnNavigationItemCommitted( 749 void WebStateImpl::OnNavigationItemCommitted(
746 const LoadCommittedDetails& load_details) { 750 const LoadCommittedDetails& load_details) {
747 for (auto& observer : observers_) 751 for (auto& observer : observers_)
748 observer.NavigationItemCommitted(load_details); 752 observer.NavigationItemCommitted(load_details);
749 } 753 }
750 754
751 WebState* WebStateImpl::GetWebState() { 755 WebState* WebStateImpl::GetWebState() {
752 return this; 756 return this;
753 } 757 }
754 758
755 } // namespace web 759 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698