| OLD | NEW |
| 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 |
| 11 #include "webrtc/api/peerconnection.h" | 11 #include "webrtc/api/peerconnection.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <cctype> // for isdigit | 14 #include <cctype> // for isdigit |
| 15 #include <utility> | 15 #include <utility> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/api/audiotrack.h" | 18 #include "webrtc/api/audiotrack.h" |
| 19 #include "webrtc/api/dtmfsender.h" | 19 #include "webrtc/api/dtmfsender.h" |
| 20 #include "webrtc/api/jsepicecandidate.h" | 20 #include "webrtc/api/jsepicecandidate.h" |
| 21 #include "webrtc/api/jsepsessiondescription.h" | 21 #include "webrtc/api/jsepsessiondescription.h" |
| 22 #include "webrtc/api/mediaconstraintsinterface.h" | 22 #include "webrtc/api/mediaconstraintsinterface.h" |
| 23 #include "webrtc/api/mediastream.h" | 23 #include "webrtc/api/mediastream.h" |
| 24 #include "webrtc/api/mediastreamobserver.h" | 24 #include "webrtc/api/mediastreamobserver.h" |
| 25 #include "webrtc/api/mediastreamproxy.h" | 25 #include "webrtc/api/mediastreamproxy.h" |
| 26 #include "webrtc/api/mediastreamtrackproxy.h" | 26 #include "webrtc/api/mediastreamtrackproxy.h" |
| 27 #include "webrtc/api/remoteaudiosource.h" | 27 #include "webrtc/api/remoteaudiosource.h" |
| 28 #include "webrtc/api/remotevideocapturer.h" | |
| 29 #include "webrtc/api/rtpreceiver.h" | 28 #include "webrtc/api/rtpreceiver.h" |
| 30 #include "webrtc/api/rtpsender.h" | 29 #include "webrtc/api/rtpsender.h" |
| 31 #include "webrtc/api/streamcollection.h" | 30 #include "webrtc/api/streamcollection.h" |
| 32 #include "webrtc/api/videocapturertracksource.h" | 31 #include "webrtc/api/videocapturertracksource.h" |
| 33 #include "webrtc/api/videotrack.h" | 32 #include "webrtc/api/videotrack.h" |
| 34 #include "webrtc/base/arraysize.h" | 33 #include "webrtc/base/arraysize.h" |
| 35 #include "webrtc/base/logging.h" | 34 #include "webrtc/base/logging.h" |
| 36 #include "webrtc/base/stringencode.h" | 35 #include "webrtc/base/stringencode.h" |
| 37 #include "webrtc/base/stringutils.h" | 36 #include "webrtc/base/stringutils.h" |
| 38 #include "webrtc/base/trace_event.h" | 37 #include "webrtc/base/trace_event.h" |
| (...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2122 DataChannel* PeerConnection::FindDataChannelBySid(int sid) const { | 2121 DataChannel* PeerConnection::FindDataChannelBySid(int sid) const { |
| 2123 for (const auto& channel : sctp_data_channels_) { | 2122 for (const auto& channel : sctp_data_channels_) { |
| 2124 if (channel->id() == sid) { | 2123 if (channel->id() == sid) { |
| 2125 return channel; | 2124 return channel; |
| 2126 } | 2125 } |
| 2127 } | 2126 } |
| 2128 return nullptr; | 2127 return nullptr; |
| 2129 } | 2128 } |
| 2130 | 2129 |
| 2131 } // namespace webrtc | 2130 } // namespace webrtc |
| OLD | NEW |