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

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

Issue 7211029: Fix a regression where extension APIs would sometimes not be available on the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reset is_init Created 9 years, 6 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/render_process_host.h
diff --git a/content/browser/renderer_host/render_process_host.h b/content/browser/renderer_host/render_process_host.h
index 94ff03feb805ca2acf1221b58031c234c7982fed..22d7ffb746367107e5e8cb71e6747021d07b2040 100644
--- a/content/browser/renderer_host/render_process_host.h
+++ b/content/browser/renderer_host/render_process_host.h
@@ -162,6 +162,11 @@ class RenderProcessHost : public IPC::Channel::Sender,
// Virtual interface ---------------------------------------------------------
+ // Old RenderProcessHosts can be reused. Call this before Init to reset the
+ // instance to the state it was before being used. Has no effect if called on
+ // a fresh RenderProcessHost.
+ virtual void PrepareForReuse() = 0;
Charlie Reis 2011/06/22 00:52:31 Since we always call this (even on the first use),
Matt Perry 2011/06/22 21:14:12 I renamed to EnableSendQueue to reflect what it ac
+
// Initialize the new renderer process, returning true on success. This must
// be called once before the object can be used, but can be called after
// that with no effect. Therefore, if the caller isn't sure about whether

Powered by Google App Engine
This is Rietveld 408576698