| 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 TALK_SESSION_MEDIA_MEDIASINK_H_ | 11 #ifndef WEBRTC_PC_MEDIASINK_H_ |
| 12 #define TALK_SESSION_MEDIA_MEDIASINK_H_ | 12 #define WEBRTC_PC_MEDIASINK_H_ |
| 13 | 13 |
| 14 namespace cricket { | 14 namespace cricket { |
| 15 | 15 |
| 16 // MediaSinkInterface is a sink to handle RTP and RTCP packets that are sent or | 16 // MediaSinkInterface is a sink to handle RTP and RTCP packets that are sent or |
| 17 // received by a channel. | 17 // received by a channel. |
| 18 class MediaSinkInterface { | 18 class MediaSinkInterface { |
| 19 public: | 19 public: |
| 20 virtual ~MediaSinkInterface() {} | 20 virtual ~MediaSinkInterface() {} |
| 21 | 21 |
| 22 virtual void SetMaxSize(size_t size) = 0; | 22 virtual void SetMaxSize(size_t size) = 0; |
| 23 virtual bool Enable(bool enable) = 0; | 23 virtual bool Enable(bool enable) = 0; |
| 24 virtual bool IsEnabled() const = 0; | 24 virtual bool IsEnabled() const = 0; |
| 25 virtual void OnPacket(const void* data, size_t size, bool rtcp) = 0; | 25 virtual void OnPacket(const void* data, size_t size, bool rtcp) = 0; |
| 26 virtual void set_packet_filter(int filter) = 0; | 26 virtual void set_packet_filter(int filter) = 0; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace cricket | 29 } // namespace cricket |
| 30 | 30 |
| 31 #endif // TALK_SESSION_MEDIA_MEDIASINK_H_ | 31 #endif // WEBRTC_PC_MEDIASINK_H_ |
| OLD | NEW |