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

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..b2b7df69039177c494fc9f48df07cbd05bc2cf46 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 EnableSendQueue() = 0;
+
// Gets the next available routing id.
virtual int GetNextRoutingID() = 0;
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698