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

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

Issue 2446543004: Fix RPHI message queueing during process death (Closed)
Patch Set: Created 4 years, 2 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/public/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index ef58b64c9736c2da687203e7fae275b0dc197d8a..ba5995ce48a6b5ad712af7d193bddb256bfd1644 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -85,6 +85,12 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// the process has been created, it should just call Init().
virtual bool Init() = 0;
+ // Ensures that a Channel exists and is at least queueing outgoing messages
+ // if there isn't a render process connected to it yet. This may be used to
+ // ensure that in the event of a renderer crash and restart, subsequent
+ // messages sent via Send() will eventually reach the new process.
+ virtual void EnsureHasChannel() = 0;
+
// Gets the next available routing id.
virtual int GetNextRoutingID() = 0;

Powered by Google App Engine
This is Rietveld 408576698