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

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

Issue 2420843004: Clean up mojom::Renderer usage in RPH (Closed)
Patch Set: rebase 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
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 358f8b4882794b54fe930ba14aa9c299d43170ac..ef58b64c9736c2da687203e7fae275b0dc197d8a 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -45,6 +45,10 @@ class RenderWidgetHost;
class StoragePartition;
struct GlobalRequestID;
+namespace mojom {
+class Renderer;
+}
+
// Interface that represents the browser side of the browser <-> renderer
// communication channel. There will generally be one RenderProcessHost per
// renderer process.
@@ -316,6 +320,11 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// Purges and suspends the renderer process.
virtual void PurgeAndSuspend() = 0;
+ // Acquires the |mojom::Renderer| interface to the render process. This is for
+ // internal use only, and is only exposed here to support
+ // MockRenderProcessHost usage in tests.
+ virtual mojom::Renderer* GetRendererInterface() = 0;
+
// Returns the current number of active views in this process. Excludes
// any RenderViewHosts that are swapped out.
size_t GetActiveViewCount();
« no previous file with comments | « content/browser/site_per_process_browsertest.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