Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2702433002: Clear renderer compositor trees if new page does not render in 4 seconds (Closed)
Patch Set: Removed a semicolon Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 is_unresponsive_ = false; 1721 is_unresponsive_ = false;
1722 if (delegate_) 1722 if (delegate_)
1723 delegate_->RendererResponsive(this); 1723 delegate_->RendererResponsive(this);
1724 } 1724 }
1725 } 1725 }
1726 1726
1727 void RenderWidgetHostImpl::ClearDisplayedGraphics() { 1727 void RenderWidgetHostImpl::ClearDisplayedGraphics() {
1728 NotifyNewContentRenderingTimeoutForTesting(); 1728 NotifyNewContentRenderingTimeoutForTesting();
1729 if (view_) 1729 if (view_)
1730 view_->ClearCompositorFrame(); 1730 view_->ClearCompositorFrame();
1731 Send(new ViewMsg_ClearDisplayedContent(GetRoutingID()));
1731 } 1732 }
1732 1733
1733 void RenderWidgetHostImpl::OnRenderProcessGone(int status, int exit_code) { 1734 void RenderWidgetHostImpl::OnRenderProcessGone(int status, int exit_code) {
1734 // RenderFrameHost owns a RenderWidgetHost when it needs one, in which case 1735 // RenderFrameHost owns a RenderWidgetHost when it needs one, in which case
1735 // it handles destruction. 1736 // it handles destruction.
1736 if (!owned_by_render_frame_host_) { 1737 if (!owned_by_render_frame_host_) {
1737 // TODO(evanm): This synchronously ends up calling "delete this". 1738 // TODO(evanm): This synchronously ends up calling "delete this".
1738 // Is that really what we want in response to this message? I'm matching 1739 // Is that really what we want in response to this message? I'm matching
1739 // previous behavior of the code here. 1740 // previous behavior of the code here.
1740 Destroy(true); 1741 Destroy(true);
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
2509 // different from the receiver's. 2510 // different from the receiver's.
2510 file_system_file.url = 2511 file_system_file.url =
2511 GURL(storage::GetIsolatedFileSystemRootURIString( 2512 GURL(storage::GetIsolatedFileSystemRootURIString(
2512 file_system_url.origin(), filesystem_id, std::string()) 2513 file_system_url.origin(), filesystem_id, std::string())
2513 .append(register_name)); 2514 .append(register_name));
2514 file_system_file.filesystem_id = filesystem_id; 2515 file_system_file.filesystem_id = filesystem_id;
2515 } 2516 }
2516 } 2517 }
2517 2518
2518 } // namespace content 2519 } // namespace content
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698