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

Side by Side Diff: content/public/browser/render_process_host.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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual int GetNextRoutingID() = 0; 65 virtual int GetNextRoutingID() = 0;
66 66
67 // Called on the UI thread to cancel any outstanding resource requests for 67 // Called on the UI thread to cancel any outstanding resource requests for
68 // the specified render widget. 68 // the specified render widget.
69 virtual void CancelResourceRequests(int render_widget_id) = 0; 69 virtual void CancelResourceRequests(int render_widget_id) = 0;
70 70
71 // Called on the UI thread to simulate a SwapOut_ACK message to the 71 // Called on the UI thread to simulate a SwapOut_ACK message to the
72 // ResourceDispatcherHost. Necessary for a cross-site request, in the case 72 // ResourceDispatcherHost. Necessary for a cross-site request, in the case
73 // that the original RenderViewHost is not live and thus cannot run an 73 // that the original RenderViewHost is not live and thus cannot run an
74 // unload handler. 74 // unload handler.
75 virtual void CrossSiteSwapOutACK( 75 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) = 0;
76 const ViewMsg_SwapOut_Params& params) = 0;
77 76
78 // Called to wait for the next UpdateRect message for the specified render 77 // Called to wait for the next UpdateRect message for the specified render
79 // widget. Returns true if successful, and the msg out-param will contain a 78 // widget. Returns true if successful, and the msg out-param will contain a
80 // copy of the received UpdateRect message. 79 // copy of the received UpdateRect message.
81 virtual bool WaitForBackingStoreMsg(int render_widget_id, 80 virtual bool WaitForBackingStoreMsg(int render_widget_id,
82 const base::TimeDelta& max_delay, 81 const base::TimeDelta& max_delay,
83 IPC::Message* msg) = 0; 82 IPC::Message* msg) = 0;
84 83
85 // Called when a received message cannot be decoded. 84 // Called when a received message cannot be decoded.
86 virtual void ReceivedBadMessage() = 0; 85 virtual void ReceivedBadMessage() = 0;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 static void SetMaxRendererProcessCount(size_t count); 244 static void SetMaxRendererProcessCount(size_t count);
246 245
247 // Returns the current max number of renderer processes used by the content 246 // Returns the current max number of renderer processes used by the content
248 // module. 247 // module.
249 static size_t GetMaxRendererProcessCount(); 248 static size_t GetMaxRendererProcessCount();
250 }; 249 };
251 250
252 } // namespace content. 251 } // namespace content.
253 252
254 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 253 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698