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_QUICSESSION_H_ | 11 #ifndef WEBRTC_P2P_QUIC_QUICSESSION_H_ |
12 #define WEBRTC_P2P_QUIC_QUICSESSION_H_ | 12 #define WEBRTC_P2P_QUIC_QUICSESSION_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "net/quic/quic_crypto_client_stream.h" | 17 #include "net/quic/quic_crypto_client_stream.h" |
18 #include "net/quic/quic_crypto_server_stream.h" | 18 #include "net/quic/quic_crypto_server_stream.h" |
19 #include "net/quic/quic_crypto_stream.h" | 19 #include "net/quic/quic_crypto_stream.h" |
20 #include "net/quic/quic_session.h" | 20 #include "net/quic/quic_session.h" |
| 21 #include "webrtc/base/constructormagic.h" |
| 22 #include "webrtc/base/sigslot.h" |
| 23 #include "webrtc/base/sslidentity.h" |
21 #include "webrtc/p2p/quic/reliablequicstream.h" | 24 #include "webrtc/p2p/quic/reliablequicstream.h" |
22 #include "webrtc/rtc_base/constructormagic.h" | |
23 #include "webrtc/rtc_base/sigslot.h" | |
24 #include "webrtc/rtc_base/sslidentity.h" | |
25 | 25 |
26 namespace cricket { | 26 namespace cricket { |
27 | 27 |
28 // This class provides a QUIC session over peer-to-peer transport that | 28 // This class provides a QUIC session over peer-to-peer transport that |
29 // negotiates the crypto handshake (using QuicCryptoHandshake) and provides | 29 // negotiates the crypto handshake (using QuicCryptoHandshake) and provides |
30 // reading/writing of data using QUIC packets. | 30 // reading/writing of data using QUIC packets. |
31 class QuicSession : public net::QuicSession, public sigslot::has_slots<> { | 31 class QuicSession : public net::QuicSession, public sigslot::has_slots<> { |
32 public: | 32 public: |
33 QuicSession(std::unique_ptr<net::QuicConnection> connection, | 33 QuicSession(std::unique_ptr<net::QuicConnection> connection, |
34 const net::QuicConfig& config); | 34 const net::QuicConfig& config); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 private: | 88 private: |
89 std::unique_ptr<net::QuicCryptoStream> crypto_stream_; | 89 std::unique_ptr<net::QuicCryptoStream> crypto_stream_; |
90 net::QuicClock clock_; // For recording packet receipt time | 90 net::QuicClock clock_; // For recording packet receipt time |
91 | 91 |
92 RTC_DISALLOW_COPY_AND_ASSIGN(QuicSession); | 92 RTC_DISALLOW_COPY_AND_ASSIGN(QuicSession); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace cricket | 95 } // namespace cricket |
96 | 96 |
97 #endif // WEBRTC_P2P_QUIC_QUICSESSION_H_ | 97 #endif // WEBRTC_P2P_QUIC_QUICSESSION_H_ |
OLD | NEW |