1a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org/*
2a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * libjingle
3a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * Copyright 2014, Google Inc.
4a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *
5a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * Redistribution and use in source and binary forms, with or without
6a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * modification, are permitted provided that the following conditions are met:
7a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *
8a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *  1. Redistributions of source code must retain the above copyright notice,
9a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *     this list of conditions and the following disclaimer.
10a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *  2. Redistributions in binary form must reproduce the above copyright notice,
11a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *     this list of conditions and the following disclaimer in the documentation
12a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *     and/or other materials provided with the distribution.
13a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *  3. The name of the author may not be used to endorse or promote products
14a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *     derived from this software without specific prior written permission.
15a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org *
16a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org */
27a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
28a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org#import "RTCDataChannel.h"
29a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
30a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org#include "talk/app/webrtc/datachannelinterface.h"
312a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org#include "webrtc/base/scoped_ref_ptr.h"
32a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
33a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@interface RTCDataBuffer (Internal)
34a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
35a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@property(nonatomic, readonly) const webrtc::DataBuffer* dataBuffer;
36a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
37a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org- (instancetype)initWithDataBuffer:(const webrtc::DataBuffer&)buffer;
38a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
39a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@end
40a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
41a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@interface RTCDataChannelInit (Internal)
42a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
43a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@property(nonatomic, readonly) const webrtc::DataChannelInit* dataChannelInit;
44a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
45a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@end
46a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
47a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@interface RTCDataChannel (Internal)
48a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
49a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@property(nonatomic, readonly)
502a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org    rtc::scoped_refptr<webrtc::DataChannelInterface> dataChannel;
51a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
52a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org- (instancetype)initWithDataChannel:
532a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org        (rtc::scoped_refptr<webrtc::DataChannelInterface>)dataChannel;
54a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org
55a00076bd69084cb5091df8e007f34236d9647b65tkchin@webrtc.org@end
56