Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 #ifndef CHROMECAST_COMMON_MEDIA_SHARED_MEMORY_CHUNK_H_ | |
| 6 #define CHROMECAST_COMMON_MEDIA_SHARED_MEMORY_CHUNK_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "chromecast/media/cma/ipc/media_memory_chunk.h" | |
| 10 | |
| 11 namespace base { | |
| 12 class SharedMemory; | |
| 13 } | |
| 14 | |
| 15 namespace chromecast { | |
| 16 namespace media { | |
| 17 | |
| 18 class SharedMemoryChunk : public MediaMemoryChunk { | |
| 19 public: | |
| 20 SharedMemoryChunk(scoped_ptr<base::SharedMemory> shared_mem, | |
| 21 size_t size); | |
| 22 virtual ~SharedMemoryChunk(); | |
| 23 | |
| 24 // MediaMemoryChunk implementation. | |
| 25 virtual void* data() const override; | |
|
gunsch
2014/12/20 22:41:33
remove "virtual" upstream for overridden methods;
erickung1
2014/12/21 11:10:46
Done.
| |
| 26 virtual size_t size() const override; | |
| 27 virtual bool valid() const override; | |
| 28 | |
| 29 private: | |
| 30 scoped_ptr<base::SharedMemory> shared_mem_; | |
| 31 size_t size_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(SharedMemoryChunk); | |
|
gunsch
2014/12/20 22:41:33
include base/macros.h for this
erickung1
2014/12/21 11:10:46
Done.
| |
| 34 }; | |
| 35 | |
| 36 } // namespace media | |
| 37 } // namespace chromecast | |
| 38 | |
| 39 #endif // CHROMECAST_COMMON_MEDIA_SHARED_MEMORY_CHUNK_H_ | |
| 40 | |
| OLD | NEW |