Index: content/browser/renderer_host/render_process_host.cc |
diff --git a/content/browser/renderer_host/render_process_host.cc b/content/browser/renderer_host/render_process_host.cc |
index cf380ab39b80e4c7109ad7f8fd0678c121612532..379ce99329003bb1d16db82a659a982828369626 100644 |
--- a/content/browser/renderer_host/render_process_host.cc |
+++ b/content/browser/renderer_host/render_process_host.cc |
@@ -94,6 +94,7 @@ RenderProcessHost::RenderProcessHost(Profile* profile) |
: max_page_id_(-1), |
fast_shutdown_started_(false), |
deleting_soon_(false), |
+ pending_views_(0), |
id_(ChildProcessInfo::GenerateChildProcessUniqueId()), |
profile_(profile), |
sudden_termination_allowed_(true), |
@@ -143,6 +144,15 @@ void RenderProcessHost::ReportExpectingClose(int32 listener_id) { |
listeners_expecting_close_.insert(listener_id); |
} |
+void RenderProcessHost::AddPendingView() { |
+ pending_views_++; |
+} |
+ |
+void RenderProcessHost::RemovePendingView() { |
+ DCHECK(pending_views_); |
+ pending_views_--; |
+} |
+ |
void RenderProcessHost::UpdateMaxPageID(int32 page_id) { |
if (page_id > max_page_id_) |
max_page_id_ = page_id; |