OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DATA_BUFFER_H_ | 5 #ifndef MEDIA_BASE_DATA_BUFFER_H_ |
6 #define MEDIA_BASE_DATA_BUFFER_H_ | 6 #define MEDIA_BASE_DATA_BUFFER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
13 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
14 | 16 |
15 namespace media { | 17 namespace media { |
16 | 18 |
17 // A simple buffer that takes ownership of the given data pointer or allocates | 19 // A simple buffer that takes ownership of the given data pointer or allocates |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 scoped_ptr<uint8_t[]> data_; | 107 scoped_ptr<uint8_t[]> data_; |
106 int buffer_size_; | 108 int buffer_size_; |
107 int data_size_; | 109 int data_size_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(DataBuffer); | 111 DISALLOW_COPY_AND_ASSIGN(DataBuffer); |
110 }; | 112 }; |
111 | 113 |
112 } // namespace media | 114 } // namespace media |
113 | 115 |
114 #endif // MEDIA_BASE_DATA_BUFFER_H_ | 116 #endif // MEDIA_BASE_DATA_BUFFER_H_ |
OLD | NEW |