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

Side by Side Diff: webrtc/media/sctp/sctptransport.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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 | « webrtc/media/sctp/sctptransport.h ('k') | webrtc/media/sctp/sctptransport_unittest.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 (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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
11 #include <errno.h> 11 #include <errno.h>
12 namespace { 12 namespace {
13 // Some ERRNO values get re-#defined to WSA* equivalents in some talk/ 13 // Some ERRNO values get re-#defined to WSA* equivalents in some talk/
14 // headers. We save the original ones in an enum. 14 // headers. We save the original ones in an enum.
15 enum PreservedErrno { 15 enum PreservedErrno {
16 SCTP_EINPROGRESS = EINPROGRESS, 16 SCTP_EINPROGRESS = EINPROGRESS,
17 SCTP_EWOULDBLOCK = EWOULDBLOCK 17 SCTP_EWOULDBLOCK = EWOULDBLOCK
18 }; 18 };
19 } 19 }
20 20
21 #include "webrtc/media/sctp/sctptransport.h" 21 #include "webrtc/media/sctp/sctptransport.h"
22 22
23 #include <stdarg.h> 23 #include <stdarg.h>
24 #include <stdio.h> 24 #include <stdio.h>
25 25
26 #include <memory> 26 #include <memory>
27 #include <sstream> 27 #include <sstream>
28 28
29 #include "usrsctplib/usrsctp.h" 29 #include "usrsctplib/usrsctp.h"
30 #include "webrtc/base/arraysize.h"
31 #include "webrtc/base/copyonwritebuffer.h"
32 #include "webrtc/base/criticalsection.h"
33 #include "webrtc/base/helpers.h"
34 #include "webrtc/base/logging.h"
35 #include "webrtc/base/safe_conversions.h"
36 #include "webrtc/base/thread_checker.h"
37 #include "webrtc/base/trace_event.h"
38 #include "webrtc/media/base/codec.h" 30 #include "webrtc/media/base/codec.h"
39 #include "webrtc/media/base/mediaconstants.h" 31 #include "webrtc/media/base/mediaconstants.h"
40 #include "webrtc/media/base/streamparams.h" 32 #include "webrtc/media/base/streamparams.h"
41 #include "webrtc/p2p/base/dtlstransportinternal.h" // For PF_NORMAL 33 #include "webrtc/p2p/base/dtlstransportinternal.h" // For PF_NORMAL
34 #include "webrtc/rtc_base/arraysize.h"
35 #include "webrtc/rtc_base/copyonwritebuffer.h"
36 #include "webrtc/rtc_base/criticalsection.h"
37 #include "webrtc/rtc_base/helpers.h"
38 #include "webrtc/rtc_base/logging.h"
39 #include "webrtc/rtc_base/safe_conversions.h"
40 #include "webrtc/rtc_base/thread_checker.h"
41 #include "webrtc/rtc_base/trace_event.h"
42 42
43 namespace { 43 namespace {
44 44
45 // The biggest SCTP packet. Starting from a 'safe' wire MTU value of 1280, 45 // The biggest SCTP packet. Starting from a 'safe' wire MTU value of 1280,
46 // take off 80 bytes for DTLS/TURN/TCP/IP overhead. 46 // take off 80 bytes for DTLS/TURN/TCP/IP overhead.
47 static constexpr size_t kSctpMtu = 1200; 47 static constexpr size_t kSctpMtu = 1200;
48 48
49 // The size of the SCTP association send buffer. 256kB, the usrsctp default. 49 // The size of the SCTP association send buffer. 256kB, the usrsctp default.
50 static constexpr int kSendBufferSize = 262144; 50 static constexpr int kSendBufferSize = 262144;
51 51
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 } 1080 }
1081 } 1081 }
1082 } 1082 }
1083 1083
1084 // Always try to send the queued RESET because this call indicates that the 1084 // Always try to send the queued RESET because this call indicates that the
1085 // last local RESET or remote RESET has made some progress. 1085 // last local RESET or remote RESET has made some progress.
1086 SendQueuedStreamResets(); 1086 SendQueuedStreamResets();
1087 } 1087 }
1088 1088
1089 } // namespace cricket 1089 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/sctp/sctptransport.h ('k') | webrtc/media/sctp/sctptransport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698