Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1169)

Unified Diff: media/mojo/interfaces/data_source.mojom

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/demuxer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/demuxer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698