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

Side by Side Diff: webrtc/p2p/base/dtlstransport.h

Issue 2396513003: Restore thread name consistency for webrtc/p2p/ . (Closed)
Patch Set: Explicit call rtc::Thread::CreateWithSocketServer() for unit test. Created 4 years, 2 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
« no previous file with comments | « no previous file | webrtc/p2p/base/dtlstransportchannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ 11 #ifndef WEBRTC_P2P_BASE_DTLSTRANSPORT_H_
12 #define WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ 12 #define WEBRTC_P2P_BASE_DTLSTRANSPORT_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/p2p/base/dtlstransportchannel.h" 16 #include "webrtc/p2p/base/dtlstransportchannel.h"
17 #include "webrtc/p2p/base/transport.h" 17 #include "webrtc/p2p/base/transport.h"
18 18
19 namespace rtc { 19 namespace rtc {
20 class SSLIdentity; 20 class SSLIdentity;
21 } 21 }
22 22
23 namespace cricket { 23 namespace cricket {
24 24
25 class PortAllocator; 25 class PortAllocator;
26 26
27 // Base should be a descendant of cricket::Transport and have a constructor 27 // Base should be a descendant of cricket::Transport and have a constructor
28 // that takes a transport name and PortAllocator. 28 // that takes a transport name and PortAllocator.
29 // 29 //
30 // Everything in this class should be called on the worker thread. 30 // Everything in this class should be called on the network thread.
31 template<class Base> 31 template<class Base>
32 class DtlsTransport : public Base { 32 class DtlsTransport : public Base {
33 public: 33 public:
34 DtlsTransport(const std::string& name, 34 DtlsTransport(const std::string& name,
35 PortAllocator* allocator, 35 PortAllocator* allocator,
36 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) 36 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate)
37 : Base(name, allocator), 37 : Base(name, allocator),
38 certificate_(certificate), 38 certificate_(certificate),
39 secure_role_(rtc::SSL_CLIENT), 39 secure_role_(rtc::SSL_CLIENT),
40 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12) {} 40 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12) {}
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 155 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
156 rtc::SSLRole secure_role_; 156 rtc::SSLRole secure_role_;
157 rtc::SSLProtocolVersion ssl_max_version_; 157 rtc::SSLProtocolVersion ssl_max_version_;
158 std::unique_ptr<rtc::SSLFingerprint> remote_fingerprint_; 158 std::unique_ptr<rtc::SSLFingerprint> remote_fingerprint_;
159 }; 159 };
160 160
161 } // namespace cricket 161 } // namespace cricket
162 162
163 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ 163 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/dtlstransportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698