OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 * | 9 * |
10 */ | 10 */ |
11 | 11 |
12 #ifndef WEBRTC_CALL_RINGBUFFER_H_ | 12 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RINGBUFFER_H_ |
13 #define WEBRTC_CALL_RINGBUFFER_H_ | 13 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RINGBUFFER_H_ |
14 | 14 |
15 #include <memory> | 15 #include <memory> |
16 #include <utility> | 16 #include <utility> |
17 | 17 |
18 #include "webrtc/base/checks.h" | 18 #include "webrtc/base/checks.h" |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // A RingBuffer works like a fixed size queue which starts discarding | 23 // A RingBuffer works like a fixed size queue which starts discarding |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 std::unique_ptr<T[]> data_; | 90 std::unique_ptr<T[]> data_; |
91 T* end_; | 91 T* end_; |
92 T* front_; | 92 T* front_; |
93 T* back_; | 93 T* back_; |
94 | 94 |
95 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RingBuffer); | 95 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RingBuffer); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace webrtc | 98 } // namespace webrtc |
99 | 99 |
100 #endif // WEBRTC_CALL_RINGBUFFER_H_ | 100 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RINGBUFFER_H_ |
OLD | NEW |