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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Address review issues Created 4 years, 1 month 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/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index f48b60aa94cde3db26ae9df48c191780308b676d..2a9a08fae4d0996dc18e929ac2d965077818128b 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -75,6 +75,10 @@ class CompositorFrameSink;
class TaskGraphRunner;
}
+namespace discardable_memory {
+class ClientDiscardableSharedMemoryManager;
+}
+
namespace gpu {
class GpuChannelHost;
}
@@ -263,6 +267,11 @@ class CONTENT_EXPORT RenderThreadImpl
layout_test_deps_ = std::move(deps);
}
+ discardable_memory::ClientDiscardableSharedMemoryManager*
+ GetDiscardableSharedMemoryManagerForTest() {
+ return discardable_shared_memory_manager_.get();
+ }
+
RendererBlinkPlatformImpl* blink_platform_impl() const {
DCHECK(blink_platform_impl_);
return blink_platform_impl_.get();
@@ -545,6 +554,9 @@ class CONTENT_EXPORT RenderThreadImpl
void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request);
+ std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager>
+ discardable_shared_memory_manager_;
+
// These objects live solely on the render thread.
std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_;
std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698