| Index: media/mojo/interfaces/data_source.mojom
|
| diff --git a/media/mojo/interfaces/data_source.mojom b/media/mojo/interfaces/data_source.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d40e0a4cee8d235391cb354ffe7096171cb0c39a
|
| --- /dev/null
|
| +++ b/media/mojo/interfaces/data_source.mojom
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +module media.mojom;
|
| +
|
| +import "media/mojo/interfaces/media_types.mojom";
|
| +import "mojo/common/time.mojom";
|
| +
|
| +interface DataSource {
|
| + Initialize() => (handle<data_pipe_consumer> pipe);
|
| +
|
| + Read(int64 position, int32 size) => (DataBuffer? buffer, int32 size);
|
| +
|
| + Stop();
|
| +
|
| + Abort();
|
| +
|
| + [Sync]
|
| + GetSize() => (bool success, int64 size);
|
| +
|
| + [Sync]
|
| + IsStreaming() => (bool is_streaming);
|
| +
|
| + SetBitrate(int32 bitrate);
|
| +};
|
|
|