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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) | 959 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) |
960 return; | 960 return; |
961 | 961 |
962 UMA_HISTOGRAM_ENUMERATION( | |
963 "ChildProcess.HangRendererType", | |
964 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_CLOSE_PAGE, | |
965 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_MAX); | |
966 | |
967 ClosePageIgnoringUnloadEvents(); | 962 ClosePageIgnoringUnloadEvents(); |
968 } | 963 } |
969 | 964 |
970 } // namespace content | 965 } // namespace content |
OLD | NEW |