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

Side by Side Diff: media/base/bitstream_buffer.h

Issue 19284015: Use a direct include of the shared_memory header in media/, ppapi/, webkit/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/shared_memory_util.h ('k') | media/base/encoded_bitstream_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_ 5 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_
6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_ 6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 // Class for passing bitstream buffers around. Does not take ownership of the 13 // Class for passing bitstream buffers around. Does not take ownership of the
14 // data. This is the media-namespace equivalent of PP_VideoBitstreamBuffer_Dev. 14 // data. This is the media-namespace equivalent of PP_VideoBitstreamBuffer_Dev.
15 class BitstreamBuffer { 15 class BitstreamBuffer {
16 public: 16 public:
17 BitstreamBuffer(int32 id, base::SharedMemoryHandle handle, size_t size) 17 BitstreamBuffer(int32 id, base::SharedMemoryHandle handle, size_t size)
18 : id_(id), 18 : id_(id),
19 handle_(handle), 19 handle_(handle),
20 size_(size) { 20 size_(size) {
21 } 21 }
22 22
23 int32 id() const { return id_; } 23 int32 id() const { return id_; }
24 base::SharedMemoryHandle handle() const { return handle_; } 24 base::SharedMemoryHandle handle() const { return handle_; }
25 size_t size() const { return size_; } 25 size_t size() const { return size_; }
26 26
27 private: 27 private:
28 int32 id_; 28 int32 id_;
29 base::SharedMemoryHandle handle_; 29 base::SharedMemoryHandle handle_;
30 size_t size_; 30 size_t size_;
31 31
32 // Allow compiler-generated copy & assign constructors. 32 // Allow compiler-generated copy & assign constructors.
33 }; 33 };
34 34
35 } // namespace media 35 } // namespace media
36 36
37 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_ 37 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_
OLDNEW
« no previous file with comments | « media/audio/shared_memory_util.h ('k') | media/base/encoded_bitstream_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698