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 |
(...skipping 14 matching lines...) Expand all Loading... |
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/rtpreceiver.h" | 28 #include "webrtc/api/rtpreceiver.h" |
29 #include "webrtc/api/rtpsender.h" | 29 #include "webrtc/api/rtpsender.h" |
30 #include "webrtc/api/streamcollection.h" | 30 #include "webrtc/api/streamcollection.h" |
31 #include "webrtc/api/videocapturertracksource.h" | 31 #include "webrtc/api/videocapturertracksource.h" |
32 #include "webrtc/api/videotrack.h" | 32 #include "webrtc/api/videotrack.h" |
33 #include "webrtc/base/arraysize.h" | 33 #include "webrtc/base/arraysize.h" |
34 #include "webrtc/base/bind.h" | 34 #include "webrtc/base/bind.h" |
| 35 #include "webrtc/base/checks.h" |
35 #include "webrtc/base/logging.h" | 36 #include "webrtc/base/logging.h" |
36 #include "webrtc/base/stringencode.h" | 37 #include "webrtc/base/stringencode.h" |
37 #include "webrtc/base/stringutils.h" | 38 #include "webrtc/base/stringutils.h" |
38 #include "webrtc/base/trace_event.h" | 39 #include "webrtc/base/trace_event.h" |
39 #include "webrtc/call/call.h" | 40 #include "webrtc/call/call.h" |
40 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 41 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
41 #include "webrtc/media/sctp/sctptransport.h" | 42 #include "webrtc/media/sctp/sctptransport.h" |
42 #include "webrtc/pc/channelmanager.h" | 43 #include "webrtc/pc/channelmanager.h" |
43 #include "webrtc/system_wrappers/include/field_trial.h" | 44 #include "webrtc/system_wrappers/include/field_trial.h" |
44 | 45 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 switch (type) { | 393 switch (type) { |
393 case PeerConnectionInterface::kNone: | 394 case PeerConnectionInterface::kNone: |
394 return cricket::CF_NONE; | 395 return cricket::CF_NONE; |
395 case PeerConnectionInterface::kRelay: | 396 case PeerConnectionInterface::kRelay: |
396 return cricket::CF_RELAY; | 397 return cricket::CF_RELAY; |
397 case PeerConnectionInterface::kNoHost: | 398 case PeerConnectionInterface::kNoHost: |
398 return (cricket::CF_ALL & ~cricket::CF_HOST); | 399 return (cricket::CF_ALL & ~cricket::CF_HOST); |
399 case PeerConnectionInterface::kAll: | 400 case PeerConnectionInterface::kAll: |
400 return cricket::CF_ALL; | 401 return cricket::CF_ALL; |
401 default: | 402 default: |
402 ASSERT(false); | 403 RTC_NOTREACHED(); |
403 } | 404 } |
404 return cricket::CF_NONE; | 405 return cricket::CF_NONE; |
405 } | 406 } |
406 | 407 |
407 // Helper method to set a voice/video channel on all applicable senders | 408 // Helper method to set a voice/video channel on all applicable senders |
408 // and receivers when one is created/destroyed by WebRtcSession. | 409 // and receivers when one is created/destroyed by WebRtcSession. |
409 // | 410 // |
410 // Used by On(Voice|Video)Channel(Created|Destroyed) | 411 // Used by On(Voice|Video)Channel(Created|Destroyed) |
411 template <class SENDER, | 412 template <class SENDER, |
412 class RECEIVER, | 413 class RECEIVER, |
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2436 | 2437 |
2437 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, | 2438 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, |
2438 int64_t max_size_bytes) { | 2439 int64_t max_size_bytes) { |
2439 return event_log_->StartLogging(file, max_size_bytes); | 2440 return event_log_->StartLogging(file, max_size_bytes); |
2440 } | 2441 } |
2441 | 2442 |
2442 void PeerConnection::StopRtcEventLog_w() { | 2443 void PeerConnection::StopRtcEventLog_w() { |
2443 event_log_->StopLogging(); | 2444 event_log_->StopLogging(); |
2444 } | 2445 } |
2445 } // namespace webrtc | 2446 } // namespace webrtc |
OLD | NEW |