| Index: chrome/browser/tab_contents/tab_contents.h
|
| diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
|
| index 9d27d2bda99b03954b270ae9760090ed589f6b4f..b9b479dcc16d2a0679b08da55c691a8df50c1706 100644
|
| --- a/chrome/browser/tab_contents/tab_contents.h
|
| +++ b/chrome/browser/tab_contents/tab_contents.h
|
| @@ -308,8 +308,14 @@ class TabContents : public PageNavigator,
|
|
|
| // Indicates whether this tab should be considered crashed. The setter will
|
| // also notify the delegate when the flag is changed.
|
| - bool is_crashed() const { return is_crashed_; }
|
| - void SetIsCrashed(bool state);
|
| + bool is_crashed() const {
|
| + return (crashed_status_ == base::TERMINATION_STATUS_PROCESS_CRASHED ||
|
| + crashed_status_ == base::TERMINATION_STATUS_ABNORMAL_TERMINATION ||
|
| + crashed_status_ == base::TERMINATION_STATUS_PROCESS_WAS_KILLED);
|
| + }
|
| + base::TerminationStatus crashed_status() const { return crashed_status_; }
|
| + int crashed_error_code() const { return crashed_error_code_; }
|
| + void SetIsCrashed(base::TerminationStatus status, int error_code);
|
|
|
| // Call this after updating a page action to notify clients about the changes.
|
| void PageActionStateChanged();
|
| @@ -952,7 +958,9 @@ class TabContents : public PageNavigator,
|
| virtual int GetBrowserWindowID() const;
|
| virtual void RenderViewCreated(RenderViewHost* render_view_host);
|
| virtual void RenderViewReady(RenderViewHost* render_view_host);
|
| - virtual void RenderViewGone(RenderViewHost* render_view_host);
|
| + virtual void RenderViewGone(RenderViewHost* render_view_host,
|
| + base::TerminationStatus status,
|
| + int error_code);
|
| virtual void RenderViewDeleted(RenderViewHost* render_view_host);
|
| virtual void DidNavigate(RenderViewHost* render_view_host,
|
| const ViewHostMsg_FrameNavigate_Params& params);
|
| @@ -1140,7 +1148,8 @@ class TabContents : public PageNavigator,
|
| bool is_loading_;
|
|
|
| // Indicates if the tab is considered crashed.
|
| - bool is_crashed_;
|
| + base::TerminationStatus crashed_status_;
|
| + int crashed_error_code_;
|
|
|
| // See waiting_for_response() above.
|
| bool waiting_for_response_;
|
|
|