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

Side by Side Diff: ios/web/public/web_state/web_state_observer_bridge.h

Issue 2718733003: Removed -[CRWWebDelegate webDidUpdateHistoryStateWithPageURL]. (Closed)
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 11 matching lines...) Expand all
22 22
23 // Invoked by WebStateObserverBridge::ProvisionalNavigationStarted. 23 // Invoked by WebStateObserverBridge::ProvisionalNavigationStarted.
24 - (void)webState:(web::WebState*)webState 24 - (void)webState:(web::WebState*)webState
25 didStartProvisionalNavigationForURL:(const GURL&)URL; 25 didStartProvisionalNavigationForURL:(const GURL&)URL;
26 26
27 // Invoked by WebStateObserverBridge::NavigationItemCommitted. 27 // Invoked by WebStateObserverBridge::NavigationItemCommitted.
28 - (void)webState:(web::WebState*)webState 28 - (void)webState:(web::WebState*)webState
29 didCommitNavigationWithDetails: 29 didCommitNavigationWithDetails:
30 (const web::LoadCommittedDetails&)load_details; 30 (const web::LoadCommittedDetails&)load_details;
31 31
32 // Invoked by WebStateObserverBridge::DidFinishNavigation.
33 - (void)webState:(web::WebState*)webState
34 didFinishNavigation:(web::NavigationContext*)navigation;
35
32 // Invoked by WebStateObserverBridge::PageLoaded. 36 // Invoked by WebStateObserverBridge::PageLoaded.
33 - (void)webState:(web::WebState*)webState didLoadPageWithSuccess:(BOOL)success; 37 - (void)webState:(web::WebState*)webState didLoadPageWithSuccess:(BOOL)success;
34 38
35 // Invoked by WebStateObserverBridge::InterstitialDismissed. 39 // Invoked by WebStateObserverBridge::InterstitialDismissed.
36 - (void)webStateDidDismissInterstitial:(web::WebState*)webState; 40 - (void)webStateDidDismissInterstitial:(web::WebState*)webState;
37 41
38 // Invoked by WebStateObserverBridge::UrlHashChanged. 42 // Invoked by WebStateObserverBridge::UrlHashChanged.
39 - (void)webStateDidChangeURLHash:(web::WebState*)webState; 43 - (void)webStateDidChangeURLHash:(web::WebState*)webState;
40 44
41 // Invoked by WebStateObserverBridge::HistoryStateChanged. 45 // Invoked by WebStateObserverBridge::HistoryStateChanged.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 class WebStateObserverBridge : public web::WebStateObserver { 94 class WebStateObserverBridge : public web::WebStateObserver {
91 public: 95 public:
92 WebStateObserverBridge(web::WebState* web_state, 96 WebStateObserverBridge(web::WebState* web_state,
93 id<CRWWebStateObserver> observer); 97 id<CRWWebStateObserver> observer);
94 ~WebStateObserverBridge() override; 98 ~WebStateObserverBridge() override;
95 99
96 // web::WebStateObserver methods. 100 // web::WebStateObserver methods.
97 void ProvisionalNavigationStarted(const GURL& url) override; 101 void ProvisionalNavigationStarted(const GURL& url) override;
98 void NavigationItemCommitted( 102 void NavigationItemCommitted(
99 const LoadCommittedDetails& load_details) override; 103 const LoadCommittedDetails& load_details) override;
104 void DidFinishNavigation(NavigationContext* navigation_context) override;
100 void PageLoaded( 105 void PageLoaded(
101 web::PageLoadCompletionStatus load_completion_status) override; 106 web::PageLoadCompletionStatus load_completion_status) override;
102 void InterstitialDismissed() override; 107 void InterstitialDismissed() override;
103 void UrlHashChanged() override; 108 void UrlHashChanged() override;
104 void HistoryStateChanged() override; 109 void HistoryStateChanged() override;
105 void LoadProgressChanged(double progress) override; 110 void LoadProgressChanged(double progress) override;
106 void DocumentSubmitted(const std::string& form_name, 111 void DocumentSubmitted(const std::string& form_name,
107 bool user_initiated) override; 112 bool user_initiated) override;
108 void FormActivityRegistered(const std::string& form_name, 113 void FormActivityRegistered(const std::string& form_name,
109 const std::string& field_name, 114 const std::string& field_name,
110 const std::string& type, 115 const std::string& type,
111 const std::string& value, 116 const std::string& value,
112 bool input_missing) override; 117 bool input_missing) override;
113 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; 118 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override;
114 void RenderProcessGone() override; 119 void RenderProcessGone() override;
115 void WebStateDestroyed() override; 120 void WebStateDestroyed() override;
116 void DidStartLoading() override; 121 void DidStartLoading() override;
117 void DidStopLoading() override; 122 void DidStopLoading() override;
118 123
119 private: 124 private:
120 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; 125 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_;
121 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); 126 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge);
122 }; 127 };
123 128
124 } // namespace web 129 } // namespace web
125 130
126 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 131 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/ui/crw_web_delegate.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698