OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_QUIC_CLIENT_SESSION_BASE_H_ | 5 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ | 6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "net/quic/quic_crypto_client_stream.h" | 9 #include "net/quic/quic_crypto_client_stream.h" |
10 #include "net/quic/quic_spdy_session.h" | 10 #include "net/quic/quic_spdy_session.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // Called when proof verification details become available, either because | 27 // Called when proof verification details become available, either because |
28 // proof verification is complete, or when cached details are used. This | 28 // proof verification is complete, or when cached details are used. This |
29 // will only be called for secure QUIC connections. | 29 // will only be called for secure QUIC connections. |
30 virtual void OnProofVerifyDetailsAvailable( | 30 virtual void OnProofVerifyDetailsAvailable( |
31 const ProofVerifyDetails& verify_details) = 0; | 31 const ProofVerifyDetails& verify_details) = 0; |
32 | 32 |
33 // Override base class to set FEC policy before any data is sent by client. | 33 // Override base class to set FEC policy before any data is sent by client. |
34 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; | 34 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; |
35 | 35 |
| 36 // Called by |headers_stream_| when push promise headers have been |
| 37 // received for a stream. |
| 38 void OnPromiseHeaders(QuicStreamId stream_id, |
| 39 StringPiece headers_data) override; |
| 40 |
| 41 // Called by |headers_stream_| when push promise headers have been |
| 42 // completely received. |fin| will be true if the fin flag was set |
| 43 // in the headers. |
| 44 void OnPromiseHeadersComplete(QuicStreamId stream_id, |
| 45 QuicStreamId promised_stream_id, |
| 46 size_t frame_len) override; |
| 47 |
36 private: | 48 private: |
| 49 QuicStreamId largest_promised_stream_id_; |
| 50 |
37 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); | 51 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); |
38 }; | 52 }; |
39 | 53 |
40 } // namespace net | 54 } // namespace net |
41 | 55 |
42 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ | 56 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
OLD | NEW |