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

Side by Side Diff: chromecast/common/media/shared_memory_chunk.cc

Issue 814403002: [Chromecast] Add CmaMediaRendererFactory and IPC proxy components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « chromecast/common/media/shared_memory_chunk.h ('k') | chromecast/renderer/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #include "chromecast/common/media/shared_memory_chunk.h"
6
7 #include "base/memory/shared_memory.h"
8
9 namespace chromecast {
10 namespace media {
11
12 SharedMemoryChunk::SharedMemoryChunk(
13 scoped_ptr<base::SharedMemory> shared_mem,
14 size_t size)
15 : shared_mem_(shared_mem.Pass()),
16 size_(size) {
17 }
18
19 SharedMemoryChunk::~SharedMemoryChunk() {
20 }
21
22 void* SharedMemoryChunk::data() const {
23 return shared_mem_->memory();
24 }
25
26 size_t SharedMemoryChunk::size() const {
27 return size_;
28 }
29
30 bool SharedMemoryChunk::valid() const {
31 return true;
32 }
33
34 } // namespace media
35 } // namespace chromecast
36
OLDNEW
« no previous file with comments | « chromecast/common/media/shared_memory_chunk.h ('k') | chromecast/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698