OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 #ifndef WEBRTC_RTC_BASE_STREAM_H_ | 11 #ifndef WEBRTC_RTC_BASE_STREAM_H_ |
12 #define WEBRTC_RTC_BASE_STREAM_H_ | 12 #define WEBRTC_RTC_BASE_STREAM_H_ |
13 | 13 |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 | 17 |
18 #include "webrtc/base/buffer.h" | 18 #include "webrtc/rtc_base/buffer.h" |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/rtc_base/constructormagic.h" |
20 #include "webrtc/base/criticalsection.h" | 20 #include "webrtc/rtc_base/criticalsection.h" |
21 #include "webrtc/base/logging.h" | 21 #include "webrtc/rtc_base/logging.h" |
22 #include "webrtc/base/messagehandler.h" | 22 #include "webrtc/rtc_base/messagehandler.h" |
23 #include "webrtc/base/messagequeue.h" | 23 #include "webrtc/rtc_base/messagequeue.h" |
24 #include "webrtc/base/sigslot.h" | 24 #include "webrtc/rtc_base/sigslot.h" |
25 | 25 |
26 namespace rtc { | 26 namespace rtc { |
27 | 27 |
28 /////////////////////////////////////////////////////////////////////////////// | 28 /////////////////////////////////////////////////////////////////////////////// |
29 // StreamInterface is a generic asynchronous stream interface, supporting read, | 29 // StreamInterface is a generic asynchronous stream interface, supporting read, |
30 // write, and close operations, and asynchronous signalling of state changes. | 30 // write, and close operations, and asynchronous signalling of state changes. |
31 // The interface is designed with file, memory, and socket implementations in | 31 // The interface is designed with file, memory, and socket implementations in |
32 // mind. Some implementations offer extended operations, such as seeking. | 32 // mind. Some implementations offer extended operations, such as seeking. |
33 /////////////////////////////////////////////////////////////////////////////// | 33 /////////////////////////////////////////////////////////////////////////////// |
34 | 34 |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 char* buffer, | 706 char* buffer, |
707 size_t buffer_len, | 707 size_t buffer_len, |
708 StreamInterface* sink, | 708 StreamInterface* sink, |
709 size_t* data_len = nullptr); | 709 size_t* data_len = nullptr); |
710 | 710 |
711 /////////////////////////////////////////////////////////////////////////////// | 711 /////////////////////////////////////////////////////////////////////////////// |
712 | 712 |
713 } // namespace rtc | 713 } // namespace rtc |
714 | 714 |
715 #endif // WEBRTC_RTC_BASE_STREAM_H_ | 715 #endif // WEBRTC_RTC_BASE_STREAM_H_ |
OLD | NEW |