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. |
9 Put(string id, array<uint8> data); | 9 // TODO(kmarshall): Use shared memory for more efficient data transfer, see |
| 10 // crbug.com/614564 . |
| 11 PutBlob(string id, string data); |
10 | 12 |
11 // Requests that the BlobChannel push the blob |id| over the wire. | 13 // Requests that the BlobChannel push the blob |id| over the wire. |
12 // The request will be ignored if the BlobChannel knows that | 14 // The request will be ignored if the BlobChannel knows that |
13 // the client already has the data. | 15 // the client already has the data. |
14 Push(string id); | 16 DeliverBlob(string id); |
15 }; | 17 }; |
16 | 18 |
OLD | NEW |