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 // Gets the list of cache keys and their replication status in the | |
Wez
2016/07/01 00:30:20
nit: list of cached BlobIds?
Suggest clarifying t
Kevin M
2016/07/18 16:58:16
Done.
| |
9 // browser process' BlobCache. | |
10 // TODO(kmarshall): Add a delegate receiver to process cache invalidation | |
11 // events from the browser as they occur. | |
12 GetCachedBlobIds() => (map<string, bool> cache_state); | |
13 | |
8 // Stores the blob |id| in the BlobCache. | 14 // Stores the blob |id| in the BlobCache. |
9 // TODO(kmarshall): Use shared memory for more efficient data transfer, see | 15 // TODO(kmarshall): Use shared memory for more efficient data transfer, see |
10 // crbug.com/614564 . | 16 // crbug.com/614564 . |
11 PutBlob(string id, string data); | 17 PutBlob(string id, string data); |
12 | 18 |
13 // Requests that the BlobChannel push the blob |id| over the wire. | 19 // Requests that the BlobChannel push the blob |id| over the wire. |
14 // The request will be ignored if the BlobChannel knows that | 20 // The request will be ignored if the BlobChannel knows that |
15 // the client already has the data. | 21 // the client already has the data. |
16 DeliverBlob(string id); | 22 DeliverBlob(string id); |
17 }; | 23 }; |
18 | 24 |
OLD | NEW |