OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_MANAGER_H_ | 5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_MANAGER_H_ |
6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_MANAGER_H_ | 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_MANAGER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <deque> | 10 #include <deque> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
14 #include "ppapi/shared_impl/ppapi_shared_export.h" | 17 #include "ppapi/shared_impl/ppapi_shared_export.h" |
15 | 18 |
16 namespace ppapi { | 19 namespace ppapi { |
17 | 20 |
18 union MediaStreamBuffer; | 21 union MediaStreamBuffer; |
19 | 22 |
20 // This class is used by both read side and write side of a MediaStreamTrack to | 23 // This class is used by both read side and write side of a MediaStreamTrack to |
21 // maintain a queue of buffers for reading or writing. | 24 // maintain a queue of buffers for reading or writing. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 96 |
94 // A memory block shared between renderer process and plugin process. | 97 // A memory block shared between renderer process and plugin process. |
95 scoped_ptr<base::SharedMemory> shm_; | 98 scoped_ptr<base::SharedMemory> shm_; |
96 | 99 |
97 DISALLOW_COPY_AND_ASSIGN(MediaStreamBufferManager); | 100 DISALLOW_COPY_AND_ASSIGN(MediaStreamBufferManager); |
98 }; | 101 }; |
99 | 102 |
100 } // namespace ppapi | 103 } // namespace ppapi |
101 | 104 |
102 #endif // PPAPI_SHAERD_IMPL_MEDIA_STREAM_BUFFER_MANAGER_H_ | 105 #endif // PPAPI_SHAERD_IMPL_MEDIA_STREAM_BUFFER_MANAGER_H_ |
OLD | NEW |