Fix how we detect renderer crash.
This commit is contained in:
parent
36f125f3d3
commit
4ddd1bccb4
2 changed files with 5 additions and 9 deletions
|
@ -273,13 +273,6 @@ void NativeWindow::RendererResponsive(content::WebContents* source) {
|
||||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnRendererResponsive());
|
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnRendererResponsive());
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindow::NavigationStateChanged(const content::WebContents* source,
|
|
||||||
unsigned changed_flags) {
|
|
||||||
if (changed_flags == content::INVALIDATE_TYPE_TAB &&
|
|
||||||
source->IsCrashed())
|
|
||||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnRendererCrashed());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool NativeWindow::OnMessageReceived(const IPC::Message& message) {
|
bool NativeWindow::OnMessageReceived(const IPC::Message& message) {
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
IPC_BEGIN_MESSAGE_MAP(NativeWindow, message)
|
IPC_BEGIN_MESSAGE_MAP(NativeWindow, message)
|
||||||
|
@ -291,6 +284,10 @@ bool NativeWindow::OnMessageReceived(const IPC::Message& message) {
|
||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NativeWindow::RenderViewGone(base::TerminationStatus status) {
|
||||||
|
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnRendererCrashed());
|
||||||
|
}
|
||||||
|
|
||||||
void NativeWindow::Observe(int type,
|
void NativeWindow::Observe(int type,
|
||||||
const content::NotificationSource& source,
|
const content::NotificationSource& source,
|
||||||
const content::NotificationDetails& details) {
|
const content::NotificationDetails& details) {
|
||||||
|
|
|
@ -151,10 +151,9 @@ class NativeWindow : public content::WebContentsDelegate,
|
||||||
const content::WebContents* source) const OVERRIDE;
|
const content::WebContents* source) const OVERRIDE;
|
||||||
virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE;
|
virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE;
|
||||||
virtual void RendererResponsive(content::WebContents* source) OVERRIDE;
|
virtual void RendererResponsive(content::WebContents* source) OVERRIDE;
|
||||||
virtual void NavigationStateChanged(const content::WebContents* source,
|
|
||||||
unsigned changed_flags) OVERRIDE;
|
|
||||||
|
|
||||||
// Implementations of content::WebContentsObserver.
|
// Implementations of content::WebContentsObserver.
|
||||||
|
virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
|
||||||
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
||||||
|
|
||||||
// Implementations of content::NotificationObserver
|
// Implementations of content::NotificationObserver
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue