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

Unified Diff: content/public/test/mock_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/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_process_host.h
diff --git a/content/public/test/mock_render_process_host.h b/content/public/test/mock_render_process_host.h
index 678489a61baea875d7173ca1be23436140c2bcdc..bf21d6b5bd597512124e1597ae2a151580de3340 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -17,6 +17,7 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_process_host_factory.h"
#include "ipc/ipc_test_sink.h"
+#include "mojo/public/cpp/bindings/associated_interface_ptr.h"
#include "services/service_manager/public/cpp/interface_provider.h"
class StoragePartition;
@@ -104,6 +105,7 @@ class MockRenderProcessHost : public RenderProcessHost {
void ForceReleaseWorkerRefCounts() override;
bool IsWorkerRefCountDisabled() override;
void PurgeAndSuspend() override;
+ mojom::Renderer* GetRendererInterface() override;
// IPC::Sender via RenderProcessHost.
bool Send(IPC::Message* msg) override;
@@ -160,6 +162,8 @@ class MockRenderProcessHost : public RenderProcessHost {
std::unique_ptr<base::ProcessHandle> process_handle;
int worker_ref_count_;
std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_;
+ std::unique_ptr<mojo::AssociatedInterfacePtr<mojom::Renderer>>
+ renderer_interface_;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698