OLD | NEW |
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_FILTERS_IN_MEMORY_URL_PROTOCOL_H_ | 5 #ifndef MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_ |
6 #define MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_ | 6 #define MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "media/filters/ffmpeg_glue.h" | 12 #include "media/filters/ffmpeg_glue.h" |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 | 15 |
14 // Simple FFmpegURLProtocol that reads from a buffer. | 16 // Simple FFmpegURLProtocol that reads from a buffer. |
15 // NOTE: This object does not copy the buffer so the | 17 // NOTE: This object does not copy the buffer so the |
16 // buffer pointer passed into the constructor | 18 // buffer pointer passed into the constructor |
17 // needs to remain valid for the entire lifetime of | 19 // needs to remain valid for the entire lifetime of |
(...skipping 15 matching lines...) Expand all Loading... |
33 int64_t size_; | 35 int64_t size_; |
34 int64_t position_; | 36 int64_t position_; |
35 bool streaming_; | 37 bool streaming_; |
36 | 38 |
37 DISALLOW_IMPLICIT_CONSTRUCTORS(InMemoryUrlProtocol); | 39 DISALLOW_IMPLICIT_CONSTRUCTORS(InMemoryUrlProtocol); |
38 }; | 40 }; |
39 | 41 |
40 } // namespace media | 42 } // namespace media |
41 | 43 |
42 #endif // MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_ | 44 #endif // MEDIA_FILTERS_IN_MEMORY_URL_PROTOCOL_H_ |
OLD | NEW |