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 #include "webrtc/p2p/base/p2ptransportchannel.h" | 11 #include "webrtc/p2p/base/p2ptransportchannel.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <iterator> | 14 #include <iterator> |
15 #include <set> | 15 #include <set> |
16 | 16 |
17 #include "webrtc/api/umametrics.h" | 17 #include "webrtc/api/umametrics.h" |
18 #include "webrtc/base/checks.h" | |
19 #include "webrtc/base/crc32.h" | |
20 #include "webrtc/base/logging.h" | |
21 #include "webrtc/base/stringencode.h" | |
22 #include "webrtc/p2p/base/candidate.h" | 18 #include "webrtc/p2p/base/candidate.h" |
23 #include "webrtc/p2p/base/candidatepairinterface.h" | 19 #include "webrtc/p2p/base/candidatepairinterface.h" |
24 #include "webrtc/p2p/base/common.h" | 20 #include "webrtc/p2p/base/common.h" |
25 #include "webrtc/p2p/base/relayport.h" // For RELAY_PORT_TYPE. | 21 #include "webrtc/p2p/base/relayport.h" // For RELAY_PORT_TYPE. |
26 #include "webrtc/p2p/base/stunport.h" // For STUN_PORT_TYPE. | 22 #include "webrtc/p2p/base/stunport.h" // For STUN_PORT_TYPE. |
| 23 #include "webrtc/rtc_base/checks.h" |
| 24 #include "webrtc/rtc_base/crc32.h" |
| 25 #include "webrtc/rtc_base/logging.h" |
| 26 #include "webrtc/rtc_base/stringencode.h" |
27 #include "webrtc/system_wrappers/include/field_trial.h" | 27 #include "webrtc/system_wrappers/include/field_trial.h" |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 // messages for queuing up work for ourselves | 31 // messages for queuing up work for ourselves |
32 enum { | 32 enum { |
33 MSG_SORT_AND_UPDATE_STATE = 1, | 33 MSG_SORT_AND_UPDATE_STATE = 1, |
34 MSG_CHECK_AND_PING, | 34 MSG_CHECK_AND_PING, |
35 MSG_REGATHER_ON_FAILED_NETWORKS | 35 MSG_REGATHER_ON_FAILED_NETWORKS |
36 }; | 36 }; |
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2060 | 2060 |
2061 void P2PTransportChannel::set_receiving(bool receiving) { | 2061 void P2PTransportChannel::set_receiving(bool receiving) { |
2062 if (receiving_ == receiving) { | 2062 if (receiving_ == receiving) { |
2063 return; | 2063 return; |
2064 } | 2064 } |
2065 receiving_ = receiving; | 2065 receiving_ = receiving; |
2066 SignalReceivingState(this); | 2066 SignalReceivingState(this); |
2067 } | 2067 } |
2068 | 2068 |
2069 } // namespace cricket | 2069 } // namespace cricket |
OLD | NEW |