| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module media.mojom; |
| 6 |
| 7 import "media/mojo/interfaces/media_types.mojom"; |
| 8 import "mojo/common/time.mojom"; |
| 9 |
| 10 interface DataSource { |
| 11 Initialize() => (handle<data_pipe_consumer> pipe); |
| 12 |
| 13 Read(int64 position, int32 size) => (DataBuffer? buffer, int32 size); |
| 14 |
| 15 Stop(); |
| 16 |
| 17 Abort(); |
| 18 |
| 19 [Sync] |
| 20 GetSize() => (bool success, int64 size); |
| 21 |
| 22 [Sync] |
| 23 IsStreaming() => (bool is_streaming); |
| 24 |
| 25 SetBitrate(int32 bitrate); |
| 26 }; |
| OLD | NEW |