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

Unified Diff: blimp/engine/mojo/blob_channel.mojom

Issue 2033013003: Use shared memory for moving data over BlobChannel Mojo interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-master
Patch Set: IPC owners file added. Created 4 years, 5 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 | « blimp/engine/mojo/OWNERS ('k') | blimp/engine/mojo/blob_channel_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/mojo/blob_channel.mojom
diff --git a/blimp/engine/mojo/blob_channel.mojom b/blimp/engine/mojo/blob_channel.mojom
index 0960916fea10655f4e3511b8e2c1684108c08ace..45567d2fee9ef5e45c299dac1654a7f3a9b65780 100644
--- a/blimp/engine/mojo/blob_channel.mojom
+++ b/blimp/engine/mojo/blob_channel.mojom
@@ -4,11 +4,17 @@
module blimp.engine.mojom;
+// Exposes BlobChannel data producer methods to the renderer processes.
+// The renderer can use this service to push bulk data such as images to
+// the client.
interface BlobChannel {
// Stores the blob |id| in the BlobCache.
- // TODO(kmarshall): Use shared memory for more efficient data transfer, see
- // crbug.com/614564 .
- PutBlob(string id, string data);
+ // Because the IPC channel is a shared resource and payloads can be quite
+ // large, we use shared memory to reduce channel contention and associated
+ // latency with other components/features.
+ //
+ // The buffer is released when the callee discards the handle for |data|.
+ PutBlob(string id, handle<shared_buffer> data, uint32 size);
// Requests that the BlobChannel push the blob |id| over the wire.
// The request will be ignored if the BlobChannel knows that
« no previous file with comments | « blimp/engine/mojo/OWNERS ('k') | blimp/engine/mojo/blob_channel_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698