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

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

Issue 2833423002: Added WebStateImpl::OnNavigationFinished(). (Closed)
Patch Set: Rebased Created 3 years, 7 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') | ios/web/web_state/web_state_impl_unittest.mm » ('j') | 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 #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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 691
692 bool WebStateImpl::HasOpener() const { 692 bool WebStateImpl::HasOpener() const {
693 return created_with_opener_; 693 return created_with_opener_;
694 } 694 }
695 695
696 void WebStateImpl::OnProvisionalNavigationStarted(const GURL& url) { 696 void WebStateImpl::OnProvisionalNavigationStarted(const GURL& url) {
697 for (auto& observer : observers_) 697 for (auto& observer : observers_)
698 observer.ProvisionalNavigationStarted(url); 698 observer.ProvisionalNavigationStarted(url);
699 } 699 }
700 700
701 void WebStateImpl::OnNavigationFinished(web::NavigationContext* context) {
702 for (auto& observer : observers_)
703 observer.DidFinishNavigation(context);
704 }
705
701 #pragma mark - NavigationManagerDelegate implementation 706 #pragma mark - NavigationManagerDelegate implementation
702 707
703 void WebStateImpl::GoToIndex(int index) { 708 void WebStateImpl::GoToIndex(int index) {
704 [web_controller_ goToItemAtIndex:index]; 709 [web_controller_ goToItemAtIndex:index];
705 } 710 }
706 711
707 void WebStateImpl::LoadURLWithParams( 712 void WebStateImpl::LoadURLWithParams(
708 const NavigationManager::WebLoadParams& params) { 713 const NavigationManager::WebLoadParams& params) {
709 [web_controller_ loadWithParams:params]; 714 [web_controller_ loadWithParams:params];
710 } 715 }
(...skipping 16 matching lines...) Expand all
727 const LoadCommittedDetails& load_details) { 732 const LoadCommittedDetails& load_details) {
728 for (auto& observer : observers_) 733 for (auto& observer : observers_)
729 observer.NavigationItemCommitted(load_details); 734 observer.NavigationItemCommitted(load_details);
730 } 735 }
731 736
732 WebState* WebStateImpl::GetWebState() { 737 WebState* WebStateImpl::GetWebState() {
733 return this; 738 return this;
734 } 739 }
735 740
736 } // namespace web 741 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/web_state/web_state_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698