Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: talk/app/webrtc/peerconnectioninterface.h

Issue 1269843005: Added DtlsCertificate, a ref counted object owning an SSLIdentity (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: webrtcsession_unittest cleanup Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // 7. Once a candidate have been found PeerConnection will call the observer 65 // 7. Once a candidate have been found PeerConnection will call the observer
66 // function OnIceCandidate. Send these candidates to the remote peer. 66 // function OnIceCandidate. Send these candidates to the remote peer.
67 67
68 #ifndef TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ 68 #ifndef TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_
69 #define TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ 69 #define TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_
70 70
71 #include <string> 71 #include <string>
72 #include <vector> 72 #include <vector>
73 73
74 #include "talk/app/webrtc/datachannelinterface.h" 74 #include "talk/app/webrtc/datachannelinterface.h"
75 #include "talk/app/webrtc/dtlscertificate.h"
75 #include "talk/app/webrtc/dtmfsenderinterface.h" 76 #include "talk/app/webrtc/dtmfsenderinterface.h"
76 #include "talk/app/webrtc/jsep.h" 77 #include "talk/app/webrtc/jsep.h"
77 #include "talk/app/webrtc/mediastreaminterface.h" 78 #include "talk/app/webrtc/mediastreaminterface.h"
78 #include "talk/app/webrtc/statstypes.h" 79 #include "talk/app/webrtc/statstypes.h"
79 #include "talk/app/webrtc/umametrics.h" 80 #include "talk/app/webrtc/umametrics.h"
80 #include "webrtc/base/fileutils.h" 81 #include "webrtc/base/fileutils.h"
81 #include "webrtc/base/network.h" 82 #include "webrtc/base/network.h"
82 #include "webrtc/base/sslstreamadapter.h" 83 #include "webrtc/base/sslstreamadapter.h"
83 #include "webrtc/base/socketaddress.h" 84 #include "webrtc/base/socketaddress.h"
84 85
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 int network_ignore_mask; 542 int network_ignore_mask;
542 543
543 // Sets the maximum supported protocol version. The highest version 544 // Sets the maximum supported protocol version. The highest version
544 // supported by both ends will be used for the connection, i.e. if one 545 // supported by both ends will be used for the connection, i.e. if one
545 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used. 546 // party supports DTLS 1.0 and the other DTLS 1.2, DTLS 1.0 will be used.
546 rtc::SSLProtocolVersion ssl_max_version; 547 rtc::SSLProtocolVersion ssl_max_version;
547 }; 548 };
548 549
549 virtual void SetOptions(const Options& options) = 0; 550 virtual void SetOptions(const Options& options) = 0;
550 551
552 // TODO(hbos): Remove default implementation when all child classes use this
553 // new function signature.
Henrik Grunell WebRTC 2015/08/05 07:41:20 Can that be done right away? If not, when is that
hbos 2015/08/06 12:11:34 Removing this function and the the blocking identi
Henrik Grunell WebRTC 2015/08/06 14:06:52 Acknowledged.
554 virtual rtc::scoped_refptr<PeerConnectionInterface>
555 CreatePeerConnection(
556 const PeerConnectionInterface::RTCConfiguration& configuration,
557 const MediaConstraintsInterface* constraints,
558 PortAllocatorFactoryInterface* allocator_factory,
559 rtc::scoped_refptr<DtlsCertificate> certificate,
560 PeerConnectionObserver* observer) {
561 return nullptr;
562 }
563
551 // This method takes the ownership of |dtls_identity_service|. 564 // This method takes the ownership of |dtls_identity_service|.
565 // --- Deprecated. ---
566 // TODO(hbos): Remove this function signature in favor of the one taking
567 // DtlsCertificate input.
552 virtual rtc::scoped_refptr<PeerConnectionInterface> 568 virtual rtc::scoped_refptr<PeerConnectionInterface>
553 CreatePeerConnection( 569 CreatePeerConnection(
554 const PeerConnectionInterface::RTCConfiguration& configuration, 570 const PeerConnectionInterface::RTCConfiguration& configuration,
555 const MediaConstraintsInterface* constraints, 571 const MediaConstraintsInterface* constraints,
556 PortAllocatorFactoryInterface* allocator_factory, 572 PortAllocatorFactoryInterface* allocator_factory,
557 DTLSIdentityServiceInterface* dtls_identity_service, 573 DTLSIdentityServiceInterface* dtls_identity_service,
558 PeerConnectionObserver* observer) = 0; 574 PeerConnectionObserver* observer) = 0;
559 575
560 // TODO(mallinath) : Remove below versions after clients are updated 576 // TODO(mallinath) : Remove below versions after clients are updated
561 // to above method. 577 // to above method.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 CreatePeerConnectionFactory( 643 CreatePeerConnectionFactory(
628 rtc::Thread* worker_thread, 644 rtc::Thread* worker_thread,
629 rtc::Thread* signaling_thread, 645 rtc::Thread* signaling_thread,
630 AudioDeviceModule* default_adm, 646 AudioDeviceModule* default_adm,
631 cricket::WebRtcVideoEncoderFactory* encoder_factory, 647 cricket::WebRtcVideoEncoderFactory* encoder_factory,
632 cricket::WebRtcVideoDecoderFactory* decoder_factory); 648 cricket::WebRtcVideoDecoderFactory* decoder_factory);
633 649
634 } // namespace webrtc 650 } // namespace webrtc
635 651
636 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ 652 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698