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

Unified Diff: content/browser/renderer_host/render_message_filter.h

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Clean-up 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/browser/renderer_host/render_message_filter.h
diff --git a/content/browser/renderer_host/render_message_filter.h b/content/browser/renderer_host/render_message_filter.h
index 137e7f9cf63ffd7dab27837da66fd821c0d6ba15..0f97132be6abfa78f4be608d79499cc0e20297cd 100644
--- a/content/browser/renderer_host/render_message_filter.h
+++ b/content/browser/renderer_host/render_message_filter.h
@@ -135,6 +135,9 @@ class CONTENT_EXPORT RenderMessageFilter
void CreateFullscreenWidget(
int opener_id,
const CreateFullscreenWidgetCallback& callback) override;
+ void AllocatedSharedBitmap(mojo::ScopedSharedBufferHandle buffer,
+ const cc::SharedBitmapId& id) override;
+ void DeletedSharedBitmap(const cc::SharedBitmapId& id) override;
// Message handlers called on the browser IO thread:
void OnEstablishGpuChannel(IPC::Message* reply);
@@ -146,19 +149,6 @@ class CONTENT_EXPORT RenderMessageFilter
void GetGpuProcessHandlesCallback(
std::unique_ptr<IPC::Message> reply,
const std::list<base::ProcessHandle>& handles);
- // Used to ask the browser to allocate a block of shared memory for the
- // renderer to send back data in, since shared memory can't be created
- // in the renderer on POSIX due to the sandbox.
- void AllocateSharedBitmapOnFileThread(uint32_t buffer_size,
- const cc::SharedBitmapId& id,
- IPC::Message* reply_msg);
- void OnAllocateSharedBitmap(uint32_t buffer_size,
- const cc::SharedBitmapId& id,
- IPC::Message* reply_msg);
- void OnAllocatedSharedBitmap(size_t buffer_size,
- const base::SharedMemoryHandle& handle,
- const cc::SharedBitmapId& id);
- void OnDeletedSharedBitmap(const cc::SharedBitmapId& id);
void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
// Browser side discardable shared memory allocation.
« no previous file with comments | « no previous file | content/browser/renderer_host/render_message_filter.cc » ('j') | content/child/child_shared_bitmap_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698