| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_QUIC_P2P_QUIC_P2P_CRYPTO_STREAM_H_ | 5 #ifndef NET_QUIC_P2P_QUIC_P2P_CRYPTO_STREAM_H_ |
| 6 #define NET_QUIC_P2P_QUIC_P2P_CRYPTO_STREAM_H_ | 6 #define NET_QUIC_P2P_QUIC_P2P_CRYPTO_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "net/quic/p2p/quic_p2p_crypto_config.h" | 9 #include "net/quic/p2p/quic_p2p_crypto_config.h" |
| 9 #include "net/quic/quic_crypto_stream.h" | 10 #include "net/quic/quic_crypto_stream.h" |
| 10 | 11 |
| 11 namespace net { | 12 namespace net { |
| 12 | 13 |
| 13 class QuicSession; | 14 class QuicSession; |
| 14 | 15 |
| 15 class NET_EXPORT_PRIVATE QuicP2PCryptoStream : public QuicCryptoStream { | 16 class NET_EXPORT_PRIVATE QuicP2PCryptoStream : public QuicCryptoStream { |
| 16 public: | 17 public: |
| 17 QuicP2PCryptoStream(QuicSession* session, const QuicP2PCryptoConfig& config); | 18 QuicP2PCryptoStream(QuicSession* session, const QuicP2PCryptoConfig& config); |
| 18 ~QuicP2PCryptoStream() override; | 19 ~QuicP2PCryptoStream() override; |
| 19 | 20 |
| 20 bool Connect(); | 21 bool Connect(); |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 QuicP2PCryptoConfig config_; | 24 QuicP2PCryptoConfig config_; |
| 24 | 25 |
| 25 DISALLOW_COPY_AND_ASSIGN(QuicP2PCryptoStream); | 26 DISALLOW_COPY_AND_ASSIGN(QuicP2PCryptoStream); |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 } // namespace net | 29 } // namespace net |
| 29 | 30 |
| 30 #endif // NET_QUIC_P2P_QUIC_P2P_CRYPTO_STREAM_H_ | 31 #endif // NET_QUIC_P2P_QUIC_P2P_CRYPTO_STREAM_H_ |
| OLD | NEW |