OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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_QUIC_QUICTRANSPORT_H_ | 11 #ifndef WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ |
12 #define WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ | 12 #define WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <map> | 15 #include <map> |
| 16 #include <memory> |
16 | 17 |
17 #include "webrtc/p2p/base/transport.h" | 18 #include "webrtc/p2p/base/transport.h" |
18 #include "webrtc/p2p/quic/quictransportchannel.h" | 19 #include "webrtc/p2p/quic/quictransportchannel.h" |
19 | 20 |
20 namespace cricket { | 21 namespace cricket { |
21 | 22 |
22 class P2PTransportChannel; | 23 class P2PTransportChannel; |
23 class PortAllocator; | 24 class PortAllocator; |
24 | 25 |
25 // TODO(mikescarlett): Refactor to avoid code duplication with DtlsTransport. | 26 // TODO(mikescarlett): Refactor to avoid code duplication with DtlsTransport. |
(...skipping 22 matching lines...) Expand all Loading... |
48 bool ApplyLocalTransportDescription(TransportChannelImpl* channel, | 49 bool ApplyLocalTransportDescription(TransportChannelImpl* channel, |
49 std::string* error_desc) override; | 50 std::string* error_desc) override; |
50 bool NegotiateTransportDescription(ContentAction action, | 51 bool NegotiateTransportDescription(ContentAction action, |
51 std::string* error_desc) override; | 52 std::string* error_desc) override; |
52 bool ApplyNegotiatedTransportDescription(TransportChannelImpl* channel, | 53 bool ApplyNegotiatedTransportDescription(TransportChannelImpl* channel, |
53 std::string* error_desc) override; | 54 std::string* error_desc) override; |
54 | 55 |
55 private: | 56 private: |
56 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 57 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
57 rtc::SSLRole local_role_ = rtc::SSL_CLIENT; | 58 rtc::SSLRole local_role_ = rtc::SSL_CLIENT; |
58 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_; | 59 std::unique_ptr<rtc::SSLFingerprint> remote_fingerprint_; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace cricket | 62 } // namespace cricket |
62 | 63 |
63 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ | 64 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ |
OLD | NEW |