| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo.media; | 6 module mojo.media; |
| 7 | 7 |
| 8 import "mojo/services/media/common/interfaces/media_common.mojom"; | 8 import "mojo/services/media/common/interfaces/media_common.mojom"; |
| 9 import "mojo/services/media/common/interfaces/media_pipe.mojom"; | 9 import "mojo/services/media/common/interfaces/media_pipe.mojom"; |
| 10 import "mojo/services/media/common/interfaces/media_types.mojom"; | 10 import "mojo/services/media/common/interfaces/media_types.mojom"; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // In the latter scenario, the client calls Connect on the producer to connect | 58 // In the latter scenario, the client calls Connect on the producer to connect |
| 59 // producer and consumer. The producer then calls PushPacket on the consumer to | 59 // producer and consumer. The producer then calls PushPacket on the consumer to |
| 60 // deliver packets. | 60 // deliver packets. |
| 61 interface MediaConsumer { | 61 interface MediaConsumer { |
| 62 // Sets the shared buffer in which packet payload will be located. | 62 // Sets the shared buffer in which packet payload will be located. |
| 63 SetBuffer(handle<shared_buffer> buffer, uint64 size) => (); | 63 SetBuffer(handle<shared_buffer> buffer, uint64 size) => (); |
| 64 | 64 |
| 65 // Pushes a packet to the consumer. The callback signals that the consumer | 65 // Pushes a packet to the consumer. The callback signals that the consumer |
| 66 // is done with the packet buffer region. | 66 // is done with the packet buffer region. |
| 67 PushPacket(MediaPacket packet) => (); | 67 PushPacket(MediaPacket packet) => (); |
| 68 |
| 69 // Flushes the stream. The callback signals that the flush operation is |
| 70 // complete. |
| 71 Flush() => (); |
| 68 }; | 72 }; |
| OLD | NEW |