Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: webrtc/api/datachannel.h

Issue 2564333002: Reland of: Separating SCTP code from BaseChannel/MediaChannel. (Closed)
Patch Set: Merge with master. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/datachannel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual bool Send(const DataBuffer& buffer); 137 virtual bool Send(const DataBuffer& buffer);
138 138
139 // rtc::MessageHandler override. 139 // rtc::MessageHandler override.
140 virtual void OnMessage(rtc::Message* msg); 140 virtual void OnMessage(rtc::Message* msg);
141 141
142 // Called when the channel's ready to use. That can happen when the 142 // Called when the channel's ready to use. That can happen when the
143 // underlying DataMediaChannel becomes ready, or when this channel is a new 143 // underlying DataMediaChannel becomes ready, or when this channel is a new
144 // stream on an existing DataMediaChannel, and we've finished negotiation. 144 // stream on an existing DataMediaChannel, and we've finished negotiation.
145 void OnChannelReady(bool writable); 145 void OnChannelReady(bool writable);
146 146
147 // Sigslots from cricket::DataChannel 147 // Slots for provider to connect signals to.
148 void OnDataReceived(cricket::DataChannel* channel, 148 void OnDataReceived(const cricket::ReceiveDataParams& params,
149 const cricket::ReceiveDataParams& params,
150 const rtc::CopyOnWriteBuffer& payload); 149 const rtc::CopyOnWriteBuffer& payload);
151 void OnStreamClosedRemotely(uint32_t sid); 150 void OnStreamClosedRemotely(int sid);
152 151
153 // The remote peer request that this channel should be closed. 152 // The remote peer request that this channel should be closed.
154 void RemotePeerRequestClose(); 153 void RemotePeerRequestClose();
155 154
156 // The following methods are for SCTP only. 155 // The following methods are for SCTP only.
157 156
158 // Sets the SCTP sid and adds to transport layer if not set yet. Should only 157 // Sets the SCTP sid and adds to transport layer if not set yet. Should only
159 // be called once. 158 // be called once.
160 void SetSctpSid(int sid); 159 void SetSctpSid(int sid);
161 // Called when the transport channel is created. 160 // Called when the transport channel is created.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 PROXY_CONSTMETHOD0(uint32_t, messages_received) 288 PROXY_CONSTMETHOD0(uint32_t, messages_received)
290 PROXY_CONSTMETHOD0(uint64_t, bytes_received) 289 PROXY_CONSTMETHOD0(uint64_t, bytes_received)
291 PROXY_CONSTMETHOD0(uint64_t, buffered_amount) 290 PROXY_CONSTMETHOD0(uint64_t, buffered_amount)
292 PROXY_METHOD0(void, Close) 291 PROXY_METHOD0(void, Close)
293 PROXY_METHOD1(bool, Send, const DataBuffer&) 292 PROXY_METHOD1(bool, Send, const DataBuffer&)
294 END_SIGNALING_PROXY() 293 END_SIGNALING_PROXY()
295 294
296 } // namespace webrtc 295 } // namespace webrtc
297 296
298 #endif // WEBRTC_API_DATACHANNEL_H_ 297 #endif // WEBRTC_API_DATACHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/datachannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698