Index: chromecast/media/cma/ipc/media_memory_chunk.h |
diff --git a/chromecast/media/cma/ipc/media_memory_chunk.h b/chromecast/media/cma/ipc/media_memory_chunk.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..de19de8534fece34d9c06672b1fed06cd6e7bf07 |
--- /dev/null |
+++ b/chromecast/media/cma/ipc/media_memory_chunk.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2014 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. |
+ |
+#ifndef CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_ |
+#define CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace chromecast { |
+namespace media { |
+ |
+class MediaMemoryChunk { |
xhwang
2014/09/03 17:40:33
Add documentation.
damienv1
2014/09/03 23:59:05
Done.
|
+ public: |
+ virtual ~MediaMemoryChunk(); |
+ |
+ // Returns the start of the block of memory. |
+ virtual void* data() const = 0; |
+ |
+ // Returns the size of the block of memory. |
+ virtual size_t size() const = 0; |
+ |
+ // Returns whether the underlying block of memory is valid. |
+ virtual bool valid() const = 0; |
xhwang
2014/09/03 17:40:33
Document when this is useful.
damienv1
2014/09/03 23:59:05
Done.
|
+}; |
+ |
+} // namespace media |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_ |