Use observer to provide OnRendererUnresponsive

This commit is contained in:
Cheng Zhao 2018-02-22 15:48:53 +09:00
parent bffb31c337
commit a3124e8873
4 changed files with 19 additions and 14 deletions

View file

@ -49,6 +49,13 @@ class WebViewGuestDelegate;
namespace api {
// Certain events are only in WebContentsDelegate, provide our own Observer to
// dispatch those events.
class ExtendedWebContentsObserver {
virtual void OnRendererResponsive() {}
};
// Wrapper around the content::WebContents.
class WebContents : public mate::TrackableObject<WebContents>,
public CommonWebContentsDelegate,
public content::WebContentsObserver {