Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module blimp.engine.mojom; | 5 module blimp.engine.mojom; |
| 6 | 6 |
| 7 interface BlobChannel { | 7 interface BlobChannel { |
| 8 // Stores the blob |id| in the BlobCache. | 8 // Stores the blob |id| in the BlobCache, using shared memory to keep |
| 9 // TODO(kmarshall): Use shared memory for more efficient data transfer, see | 9 // large data payloads out of the Mojo IPC channel. |
|
Wez
2016/06/11 00:16:37
nit: Isn't the use of shared-memory obvious from t
Kevin M
2016/06/16 21:00:38
It wasn't to maniscalco@, who requested that I add
maniscalco
2016/06/16 21:07:14
Sorry if I was unclear. The "why" is the part I'm
Kevin M
2016/06/21 17:19:46
How's this?
maniscalco
2016/06/21 17:33:15
That captures it nicely.
| |
| 10 // crbug.com/614564 . | 10 // The service invokes the no-arg callback after the operation has completed. |
| 11 PutBlob(string id, string data); | 11 PutBlob(string id, handle<shared_buffer> data, uint32 size) => (); |
|
Wez
2016/06/11 00:16:37
nit: Do we need |size| to be explicit? Does Mojo n
Kevin M
2016/06/16 21:00:38
It doesn't. Handles are just opaque ints, and the
| |
| 12 | 12 |
| 13 // Requests that the BlobChannel push the blob |id| over the wire. | 13 // Requests that the BlobChannel push the blob |id| over the wire. |
| 14 // The request will be ignored if the BlobChannel knows that | 14 // The request will be ignored if the BlobChannel knows that |
| 15 // the client already has the data. | 15 // the client already has the data. |
| 16 DeliverBlob(string id); | 16 DeliverBlob(string id); |
| 17 }; | 17 }; |
| 18 | 18 |
| OLD | NEW |