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 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // QuicSession overrides. | 43 // QuicSession overrides. |
44 net::QuicCryptoStream* GetCryptoStream() override { | 44 net::QuicCryptoStream* GetCryptoStream() override { |
45 return crypto_stream_.get(); | 45 return crypto_stream_.get(); |
46 } | 46 } |
47 ReliableQuicStream* CreateOutgoingDynamicStream( | 47 ReliableQuicStream* CreateOutgoingDynamicStream( |
48 net::SpdyPriority priority) override; | 48 net::SpdyPriority priority) override; |
49 | 49 |
50 // QuicSession optional overrides. | 50 // QuicSession optional overrides. |
51 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; | 51 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; |
| 52 void CloseStream(net::QuicStreamId stream_id) override; |
52 | 53 |
53 // QuicConnectionVisitorInterface overrides. | 54 // QuicConnectionVisitorInterface overrides. |
54 void OnConnectionClosed(net::QuicErrorCode error, | 55 void OnConnectionClosed(net::QuicErrorCode error, |
55 const std::string& error_details, | 56 const std::string& error_details, |
56 net::ConnectionCloseSource source) override; | 57 net::ConnectionCloseSource source) override; |
57 | 58 |
58 // Exports keying material for SRTP. | 59 // Exports keying material for SRTP. |
59 bool ExportKeyingMaterial(base::StringPiece label, | 60 bool ExportKeyingMaterial(base::StringPiece label, |
60 base::StringPiece context, | 61 base::StringPiece context, |
61 size_t result_len, | 62 size_t result_len, |
(...skipping 12 matching lines...) Expand all Loading... |
74 sigslot::signal1<ReliableQuicStream*> SignalIncomingStream; | 75 sigslot::signal1<ReliableQuicStream*> SignalIncomingStream; |
75 | 76 |
76 protected: | 77 protected: |
77 // Sets the QUIC crypto stream and takes ownership of it. | 78 // Sets the QUIC crypto stream and takes ownership of it. |
78 void SetCryptoStream(net::QuicCryptoStream* crypto_stream); | 79 void SetCryptoStream(net::QuicCryptoStream* crypto_stream); |
79 | 80 |
80 // QuicSession override. | 81 // QuicSession override. |
81 ReliableQuicStream* CreateIncomingDynamicStream( | 82 ReliableQuicStream* CreateIncomingDynamicStream( |
82 net::QuicStreamId id) override; | 83 net::QuicStreamId id) override; |
83 | 84 |
84 virtual ReliableQuicStream* CreateDataStream(net::QuicStreamId id); | 85 virtual ReliableQuicStream* CreateDataStream(net::QuicStreamId id, |
| 86 net::SpdyPriority priority); |
85 | 87 |
86 private: | 88 private: |
87 std::unique_ptr<net::QuicCryptoStream> crypto_stream_; | 89 std::unique_ptr<net::QuicCryptoStream> crypto_stream_; |
88 net::QuicClock clock_; // For recording packet receipt time | 90 net::QuicClock clock_; // For recording packet receipt time |
89 | 91 |
90 RTC_DISALLOW_COPY_AND_ASSIGN(QuicSession); | 92 RTC_DISALLOW_COPY_AND_ASSIGN(QuicSession); |
91 }; | 93 }; |
92 | 94 |
93 } // namespace cricket | 95 } // namespace cricket |
94 | 96 |
95 #endif // WEBRTC_P2P_QUIC_QUICSESSION_H_ | 97 #endif // WEBRTC_P2P_QUIC_QUICSESSION_H_ |
OLD | NEW |