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

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

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 | « no previous file | ios/web/web_state/web_state_impl.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 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ 5 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ 6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 23 matching lines...) Expand all
34 namespace net { 34 namespace net {
35 class HttpResponseHeaders; 35 class HttpResponseHeaders;
36 } 36 }
37 37
38 namespace web { 38 namespace web {
39 39
40 class BrowserState; 40 class BrowserState;
41 struct ContextMenuParams; 41 struct ContextMenuParams;
42 struct FaviconURL; 42 struct FaviconURL;
43 struct LoadCommittedDetails; 43 struct LoadCommittedDetails;
44 class NavigationContext;
44 class NavigationManager; 45 class NavigationManager;
45 class SessionCertificatePolicyCacheImpl; 46 class SessionCertificatePolicyCacheImpl;
46 class WebInterstitialImpl; 47 class WebInterstitialImpl;
47 class WebStateInterfaceProvider; 48 class WebStateInterfaceProvider;
48 class WebStatePolicyDecider; 49 class WebStatePolicyDecider;
49 class WebUIIOS; 50 class WebUIIOS;
50 51
51 // Implementation of WebState. 52 // Implementation of WebState.
52 // Generally mirrors //content's WebContents implementation. 53 // Generally mirrors //content's WebContents implementation.
53 // General notes on expected WebStateImpl ownership patterns: 54 // General notes on expected WebStateImpl ownership patterns:
(...skipping 14 matching lines...) Expand all
68 WebStateImpl(const CreateParams& params, CRWSessionStorage* session_storage); 69 WebStateImpl(const CreateParams& params, CRWSessionStorage* session_storage);
69 ~WebStateImpl() override; 70 ~WebStateImpl() override;
70 71
71 // Gets/Sets the CRWWebController that backs this object. 72 // Gets/Sets the CRWWebController that backs this object.
72 CRWWebController* GetWebController(); 73 CRWWebController* GetWebController();
73 void SetWebController(CRWWebController* web_controller); 74 void SetWebController(CRWWebController* web_controller);
74 75
75 // Notifies the observers that a provisional navigation has started. 76 // Notifies the observers that a provisional navigation has started.
76 void OnProvisionalNavigationStarted(const GURL& url); 77 void OnProvisionalNavigationStarted(const GURL& url);
77 78
79 // Called when a navigation is finished.
80 void OnNavigationFinished(web::NavigationContext* context);
81
78 // Called when a navigation is committed. 82 // Called when a navigation is committed.
79 void OnNavigationCommitted(const GURL& url); 83 void OnNavigationCommitted(const GURL& url);
80 84
81 // Notifies the observers that same page navigation did finish. 85 // Notifies the observers that same page navigation did finish.
82 void OnSameDocumentNavigation(const GURL& url); 86 void OnSameDocumentNavigation(const GURL& url);
83 87
84 // Notifies the observers that navigation to error page did finish. 88 // Notifies the observers that navigation to error page did finish.
85 void OnErrorPageNavigation(const GURL& url); 89 void OnErrorPageNavigation(const GURL& url);
86 90
87 // Called when page title was changed. 91 // Called when page title was changed.
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 357
354 // Mojo interface registry for this WebState. 358 // Mojo interface registry for this WebState.
355 std::unique_ptr<WebStateInterfaceProvider> web_state_interface_provider_; 359 std::unique_ptr<WebStateInterfaceProvider> web_state_interface_provider_;
356 360
357 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); 361 DISALLOW_COPY_AND_ASSIGN(WebStateImpl);
358 }; 362 };
359 363
360 } // namespace web 364 } // namespace web
361 365
362 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ 366 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698