OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/browser/tab_contents/tab_contents.h" | 5 #include "content/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 base::TerminationStatus status, | 1435 base::TerminationStatus status, |
1436 int error_code) { | 1436 int error_code) { |
1437 if (rvh != render_view_host()) { | 1437 if (rvh != render_view_host()) { |
1438 // The pending page's RenderViewHost is gone. | 1438 // The pending page's RenderViewHost is gone. |
1439 return; | 1439 return; |
1440 } | 1440 } |
1441 | 1441 |
1442 SetIsLoading(false, NULL); | 1442 SetIsLoading(false, NULL); |
1443 NotifyDisconnected(); | 1443 NotifyDisconnected(); |
1444 SetIsCrashed(status, error_code); | 1444 SetIsCrashed(status, error_code); |
| 1445 view()->OnTabCrashed(crashed_status(), crashed_error_code()); |
1445 | 1446 |
1446 FOR_EACH_OBSERVER(TabContentsObserver, observers_, RenderViewGone()); | 1447 FOR_EACH_OBSERVER(TabContentsObserver, observers_, RenderViewGone()); |
1447 } | 1448 } |
1448 | 1449 |
1449 void TabContents::RenderViewDeleted(RenderViewHost* rvh) { | 1450 void TabContents::RenderViewDeleted(RenderViewHost* rvh) { |
1450 render_manager_.RenderViewDeleted(rvh); | 1451 render_manager_.RenderViewDeleted(rvh); |
1451 } | 1452 } |
1452 | 1453 |
1453 void TabContents::DidNavigate(RenderViewHost* rvh, | 1454 void TabContents::DidNavigate(RenderViewHost* rvh, |
1454 const ViewHostMsg_FrameNavigate_Params& params) { | 1455 const ViewHostMsg_FrameNavigate_Params& params) { |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1951 } | 1952 } |
1952 | 1953 |
1953 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { | 1954 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { |
1954 render_manager_.SwapInRenderViewHost(rvh); | 1955 render_manager_.SwapInRenderViewHost(rvh); |
1955 } | 1956 } |
1956 | 1957 |
1957 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 1958 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
1958 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 1959 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
1959 rwh_view->SetSize(view()->GetContainerSize()); | 1960 rwh_view->SetSize(view()->GetContainerSize()); |
1960 } | 1961 } |
OLD | NEW |