| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |