Allow supervised users to delete profiles in about:settings.
[chromium-blink-merge.git] / media / base / bitstream_buffer.h
blob3a264737f42ee22d5b8f07ce44b2e6062fe71784
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_
6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/shared_memory.h"
11 namespace media {
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.
15 class BitstreamBuffer {
16 public:
17 BitstreamBuffer(int32 id, base::SharedMemoryHandle handle, size_t size)
18 : id_(id),
19 handle_(handle),
20 size_(size) {
23 int32 id() const { return id_; }
24 base::SharedMemoryHandle handle() const { return handle_; }
25 size_t size() const { return size_; }
27 private:
28 int32 id_;
29 base::SharedMemoryHandle handle_;
30 size_t size_;
32 // Allow compiler-generated copy & assign constructors.
35 } // namespace media
37 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_