| 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_BASE_STREAM_H_ | 11 #ifndef WEBRTC_BASE_STREAM_H_ | 
| 12 #define WEBRTC_BASE_STREAM_H_ | 12 #define WEBRTC_BASE_STREAM_H_ | 
| 13 | 13 | 
| 14 #include <memory> | 14 #include <memory> | 
| 15 #include <stdio.h> | 15 #include <stdio.h> | 
| 16 | 16 | 
| 17 #include "webrtc/base/basictypes.h" | 17 #include "webrtc/base/basictypes.h" | 
| 18 #include "webrtc/base/buffer.h" | 18 #include "webrtc/base/buffer.h" | 
|  | 19 #include "webrtc/base/constructormagic.h" | 
| 19 #include "webrtc/base/criticalsection.h" | 20 #include "webrtc/base/criticalsection.h" | 
| 20 #include "webrtc/base/logging.h" | 21 #include "webrtc/base/logging.h" | 
| 21 #include "webrtc/base/messagehandler.h" | 22 #include "webrtc/base/messagehandler.h" | 
| 22 #include "webrtc/base/messagequeue.h" | 23 #include "webrtc/base/messagequeue.h" | 
| 23 #include "webrtc/base/sigslot.h" | 24 #include "webrtc/base/sigslot.h" | 
| 24 | 25 | 
| 25 namespace rtc { | 26 namespace rtc { | 
| 26 | 27 | 
| 27 /////////////////////////////////////////////////////////////////////////////// | 28 /////////////////////////////////////////////////////////////////////////////// | 
| 28 // StreamInterface is a generic asynchronous stream interface, supporting read, | 29 // StreamInterface is a generic asynchronous stream interface, supporting read, | 
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 703 // as a pass in parameter, it indicates data in buffer that should move to sink | 704 // as a pass in parameter, it indicates data in buffer that should move to sink | 
| 704 StreamResult Flow(StreamInterface* source, | 705 StreamResult Flow(StreamInterface* source, | 
| 705                   char* buffer, size_t buffer_len, | 706                   char* buffer, size_t buffer_len, | 
| 706                   StreamInterface* sink, size_t* data_len = NULL); | 707                   StreamInterface* sink, size_t* data_len = NULL); | 
| 707 | 708 | 
| 708 /////////////////////////////////////////////////////////////////////////////// | 709 /////////////////////////////////////////////////////////////////////////////// | 
| 709 | 710 | 
| 710 }  // namespace rtc | 711 }  // namespace rtc | 
| 711 | 712 | 
| 712 #endif  // WEBRTC_BASE_STREAM_H_ | 713 #endif  // WEBRTC_BASE_STREAM_H_ | 
| OLD | NEW | 
|---|