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

Unified Diff: media/base/media_resource.h

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/base/ipc/media_param_traits_macros.h ('k') | media/base/media_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_resource.h
diff --git a/media/base/media_resource.h b/media/base/media_resource.h
index 2cd90192c013d892759f7ee2f939dfa31280d60f..a42e4e7bc85de7fa895be4bf6e7f7ac434f03544 100644
--- a/media/base/media_resource.h
+++ b/media/base/media_resource.h
@@ -22,10 +22,13 @@ namespace media {
class MEDIA_EXPORT MediaResource {
public:
enum Type {
+ REMOTE, // Indicates GetRemoteId() should be used
STREAM, // Indicates GetStreams() should be used
URL, // Indicates GetUrl() should be used
};
+ static const int kInvalidRemoteId;
+
MediaResource();
virtual ~MediaResource();
@@ -53,6 +56,11 @@ class MEDIA_EXPORT MediaResource {
virtual MediaResource::Type GetType() const;
+ virtual int32_t GetRemoteId() const;
+
+ protected:
+ int32_t remote_id_;
+
private:
DISALLOW_COPY_AND_ASSIGN(MediaResource);
};
« no previous file with comments | « media/base/ipc/media_param_traits_macros.h ('k') | media/base/media_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698