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

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

Issue 2666953003: [ios] Automatically fail any WebTest whose render process crashes. (Closed)
Patch Set: Fix comment. Created 3 years, 10 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_GLOBAL_WEB_STATE_OBSERVER_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_GLOBAL_WEB_STATE_OBSERVER_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_GLOBAL_WEB_STATE_OBSERVER_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_GLOBAL_WEB_STATE_OBSERVER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 // Called when |web_state| has started loading a page. 38 // Called when |web_state| has started loading a page.
39 virtual void WebStateDidStartLoading(WebState* web_state) {} 39 virtual void WebStateDidStartLoading(WebState* web_state) {}
40 40
41 // Called when |web_state| has stopped loading a page. 41 // Called when |web_state| has stopped loading a page.
42 virtual void WebStateDidStopLoading(WebState* web_state) {} 42 virtual void WebStateDidStopLoading(WebState* web_state) {}
43 43
44 // Called when the current page is loaded in |web_state|. 44 // Called when the current page is loaded in |web_state|.
45 virtual void PageLoaded(WebState* web_state, 45 virtual void PageLoaded(WebState* web_state,
46 PageLoadCompletionStatus load_completion_status) {} 46 PageLoadCompletionStatus load_completion_status) {}
47 47
48 // Called when the web process is terminated (usually by crashing, though
49 // possibly by other means).
50 virtual void RenderProcessGone(WebState* web_state) {}
51
48 // Called when |web_state| is being destroyed. 52 // Called when |web_state| is being destroyed.
49 virtual void WebStateDestroyed(WebState* web_state) {} 53 virtual void WebStateDestroyed(WebState* web_state) {}
50 54
51 protected: 55 protected:
52 GlobalWebStateObserver(); 56 GlobalWebStateObserver();
53 virtual ~GlobalWebStateObserver(); 57 virtual ~GlobalWebStateObserver();
54 58
55 private: 59 private:
56 DISALLOW_COPY_AND_ASSIGN(GlobalWebStateObserver); 60 DISALLOW_COPY_AND_ASSIGN(GlobalWebStateObserver);
57 }; 61 };
58 62
59 } // namespace web 63 } // namespace web
60 64
61 #endif // IOS_WEB_PUBLIC_WEB_STATE_GLOBAL_WEB_STATE_OBSERVER_H_ 65 #endif // IOS_WEB_PUBLIC_WEB_STATE_GLOBAL_WEB_STATE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698