OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 } else { | 949 } else { |
950 render_view_ready_on_process_launch_ = true; | 950 render_view_ready_on_process_launch_ = true; |
951 } | 951 } |
952 } | 952 } |
953 | 953 |
954 void RenderViewHostImpl::RenderViewReady() { | 954 void RenderViewHostImpl::RenderViewReady() { |
955 delegate_->RenderViewReady(this); | 955 delegate_->RenderViewReady(this); |
956 } | 956 } |
957 | 957 |
958 void RenderViewHostImpl::ClosePageTimeout() { | 958 void RenderViewHostImpl::ClosePageTimeout() { |
| 959 // Temporarily fire "hung" events to keep the renderer_hang_count from |
| 960 // Stability.Counts stable. |
| 961 NotificationService::current()->Notify(NOTIFICATION_RENDER_WIDGET_HOST_HANG, |
| 962 Source<RenderWidgetHost>(nullptr), |
| 963 NotificationService::NoDetails()); |
| 964 |
959 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) | 965 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) |
960 return; | 966 return; |
961 | 967 |
962 UMA_HISTOGRAM_ENUMERATION( | 968 UMA_HISTOGRAM_ENUMERATION( |
963 "ChildProcess.HangRendererType", | 969 "ChildProcess.HangRendererType", |
964 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_CLOSE_PAGE, | 970 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_CLOSE_PAGE, |
965 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_MAX); | 971 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_MAX); |
966 | 972 |
967 ClosePageIgnoringUnloadEvents(); | 973 ClosePageIgnoringUnloadEvents(); |
968 } | 974 } |
969 | 975 |
970 } // namespace content | 976 } // namespace content |
OLD | NEW |