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

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

Issue 2645783002: Replaced webControllerWebProcessDidCrash: with RenderProcessGone. (Closed)
Patch Set: Created 3 years, 11 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 fieldName:(const std::string&)fieldName 53 fieldName:(const std::string&)fieldName
54 type:(const std::string&)type 54 type:(const std::string&)type
55 value:(const std::string&)value 55 value:(const std::string&)value
56 inputMissing:(BOOL)inputMissing; 56 inputMissing:(BOOL)inputMissing;
57 57
58 // Invoked by WebStateObserverBridge::FaviconUrlUpdated. 58 // Invoked by WebStateObserverBridge::FaviconUrlUpdated.
59 - (void)webState:(web::WebState*)webState 59 - (void)webState:(web::WebState*)webState
60 didUpdateFaviconURLCandidates: 60 didUpdateFaviconURLCandidates:
61 (const std::vector<web::FaviconURL>&)candidates; 61 (const std::vector<web::FaviconURL>&)candidates;
62 62
63 // Invoked by WebStateObserverBridge::RenderProcessGone.
64 - (void)renderProcessGoneForWebState:(web::WebState*)webState;
65
63 // Note: after |webStateDestroyed:| is invoked, the WebState being observed 66 // Note: after |webStateDestroyed:| is invoked, the WebState being observed
64 // is no longer valid. 67 // is no longer valid.
65 - (void)webStateDestroyed:(web::WebState*)webState; 68 - (void)webStateDestroyed:(web::WebState*)webState;
66 69
67 // Invoked by WebStateObserverBridge::DidStopLoading. 70 // Invoked by WebStateObserverBridge::DidStopLoading.
68 - (void)webStateDidStopLoading:(web::WebState*)webState; 71 - (void)webStateDidStopLoading:(web::WebState*)webState;
69 72
70 // Invoked by WebStateObserverBridge::DidStartLoading. 73 // Invoked by WebStateObserverBridge::DidStartLoading.
71 - (void)webStateDidStartLoading:(web::WebState*)webState; 74 - (void)webStateDidStartLoading:(web::WebState*)webState;
72 75
(...skipping 23 matching lines...) Expand all
96 void UrlHashChanged() override; 99 void UrlHashChanged() override;
97 void HistoryStateChanged() override; 100 void HistoryStateChanged() override;
98 void DocumentSubmitted(const std::string& form_name, 101 void DocumentSubmitted(const std::string& form_name,
99 bool user_initiated) override; 102 bool user_initiated) override;
100 void FormActivityRegistered(const std::string& form_name, 103 void FormActivityRegistered(const std::string& form_name,
101 const std::string& field_name, 104 const std::string& field_name,
102 const std::string& type, 105 const std::string& type,
103 const std::string& value, 106 const std::string& value,
104 bool input_missing) override; 107 bool input_missing) override;
105 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; 108 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override;
109 void RenderProcessGone() override;
106 void WebStateDestroyed() override; 110 void WebStateDestroyed() override;
107 void DidStartLoading() override; 111 void DidStartLoading() override;
108 void DidStopLoading() override; 112 void DidStopLoading() override;
109 113
110 private: 114 private:
111 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; 115 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_;
112 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); 116 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge);
113 }; 117 };
114 118
115 } // namespace web 119 } // namespace web
116 120
117 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 121 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state_observer.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