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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_impl.h

Issue 10907182: Add UMA counter for hung renderers on cross-site navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/resource_dispatcher_host_impl.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host_impl.h b/content/browser/renderer_host/resource_dispatcher_host_impl.h
index 8b82c1043b8a6a3a1160ff71ed9cd835eb1101d3..16ed9667a940fcc5fef1974189a8c1990b53742a 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_impl.h
+++ b/content/browser/renderer_host/resource_dispatcher_host_impl.h
@@ -155,6 +155,11 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// Called when the unload handler for a cross-site request has finished.
void OnSwapOutACK(const ViewMsg_SwapOut_Params& params);
+ // Called when we want to simulate the renderer process sending
+ // ViewHostMsg_SwapOut_ACK in cases where the renderer has died or is
+ // unresponsive.
+ void OnSimulateSwapOutACK(const ViewMsg_SwapOut_Params& params);
+
// Called when the renderer loads a resource from its internal cache.
void OnDidLoadResourceFromMemoryCache(const GURL& url,
const std::string& security_info,
@@ -250,6 +255,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// A shutdown helper that runs on the IO thread.
void OnShutdown();
+ // The real implementation of the OnSwapOutACK logic. Public methods call
+ // this method with the proper value for the timed_out parameter.
+ void HandleSwapOutACK(const ViewMsg_SwapOut_Params& params, bool timed_out);
+
// Helper function for regular and download requests.
void BeginRequestInternal(scoped_ptr<net::URLRequest> request,
scoped_ptr<ResourceHandler> handler);

Powered by Google App Engine
This is Rietveld 408576698