OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // CreatePeerConnectionFactory method which accepts threads as input and use the | 534 // CreatePeerConnectionFactory method which accepts threads as input and use the |
535 // CreatePeerConnection version that takes a PortAllocatorFactoryInterface as | 535 // CreatePeerConnection version that takes a PortAllocatorFactoryInterface as |
536 // argument. | 536 // argument. |
537 class PeerConnectionFactoryInterface : public rtc::RefCountInterface { | 537 class PeerConnectionFactoryInterface : public rtc::RefCountInterface { |
538 public: | 538 public: |
539 class Options { | 539 class Options { |
540 public: | 540 public: |
541 Options() : | 541 Options() : |
542 disable_encryption(false), | 542 disable_encryption(false), |
543 disable_sctp_data_channels(false), | 543 disable_sctp_data_channels(false), |
| 544 disable_network_monitor(false), |
544 network_ignore_mask(rtc::kDefaultNetworkIgnoreMask), | 545 network_ignore_mask(rtc::kDefaultNetworkIgnoreMask), |
545 ssl_max_version(rtc::SSL_PROTOCOL_DTLS_10) { | 546 ssl_max_version(rtc::SSL_PROTOCOL_DTLS_10) { |
546 } | 547 } |
547 bool disable_encryption; | 548 bool disable_encryption; |
548 bool disable_sctp_data_channels; | 549 bool disable_sctp_data_channels; |
| 550 bool disable_network_monitor; |
549 | 551 |
550 // Sets the network types to ignore. For instance, calling this with | 552 // Sets the network types to ignore. For instance, calling this with |
551 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and | 553 // ADAPTER_TYPE_ETHERNET | ADAPTER_TYPE_LOOPBACK will ignore Ethernet and |
552 // loopback interfaces. | 554 // loopback interfaces. |
553 int network_ignore_mask; | 555 int network_ignore_mask; |
554 | 556 |
555 // Sets the maximum supported protocol version. The highest version | 557 // Sets the maximum supported protocol version. The highest version |
556 // supported by both ends will be used for the connection, i.e. if one | 558 // supported by both ends will be used for the connection, i.e. if one |
557 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. | 559 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. |
558 rtc::SSLProtocolVersion ssl_max_version; | 560 rtc::SSLProtocolVersion ssl_max_version; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 CreatePeerConnectionFactory( | 655 CreatePeerConnectionFactory( |
654 rtc::Thread* worker_thread, | 656 rtc::Thread* worker_thread, |
655 rtc::Thread* signaling_thread, | 657 rtc::Thread* signaling_thread, |
656 AudioDeviceModule* default_adm, | 658 AudioDeviceModule* default_adm, |
657 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 659 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
658 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 660 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
659 | 661 |
660 } // namespace webrtc | 662 } // namespace webrtc |
661 | 663 |
662 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 664 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |