| 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/peerconnectioninterface.h" | 17 #include "webrtc/api/umametrics.h" |
| 18 #include "webrtc/base/checks.h" | 18 #include "webrtc/base/checks.h" |
| 19 #include "webrtc/base/common.h" | 19 #include "webrtc/base/common.h" |
| 20 #include "webrtc/base/crc32.h" | 20 #include "webrtc/base/crc32.h" |
| 21 #include "webrtc/base/logging.h" | 21 #include "webrtc/base/logging.h" |
| 22 #include "webrtc/base/stringencode.h" | 22 #include "webrtc/base/stringencode.h" |
| 23 #include "webrtc/p2p/base/candidate.h" | 23 #include "webrtc/p2p/base/candidate.h" |
| 24 #include "webrtc/p2p/base/candidatepairinterface.h" | 24 #include "webrtc/p2p/base/candidatepairinterface.h" |
| 25 #include "webrtc/p2p/base/common.h" | 25 #include "webrtc/p2p/base/common.h" |
| 26 #include "webrtc/p2p/base/relayport.h" // For RELAY_PORT_TYPE. | 26 #include "webrtc/p2p/base/relayport.h" // For RELAY_PORT_TYPE. |
| 27 #include "webrtc/p2p/base/stunport.h" // For STUN_PORT_TYPE. | 27 #include "webrtc/p2p/base/stunport.h" // For STUN_PORT_TYPE. |
| (...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 | 2008 |
| 2009 // During the initial state when nothing has been pinged yet, return the first | 2009 // During the initial state when nothing has been pinged yet, return the first |
| 2010 // one in the ordered |connections_|. | 2010 // one in the ordered |connections_|. |
| 2011 return *(std::find_if(connections_.begin(), connections_.end(), | 2011 return *(std::find_if(connections_.begin(), connections_.end(), |
| 2012 [conn1, conn2](Connection* conn) { | 2012 [conn1, conn2](Connection* conn) { |
| 2013 return conn == conn1 || conn == conn2; | 2013 return conn == conn1 || conn == conn2; |
| 2014 })); | 2014 })); |
| 2015 } | 2015 } |
| 2016 | 2016 |
| 2017 } // namespace cricket | 2017 } // namespace cricket |
| OLD | NEW |