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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 : public QuicSpdySession, | 35 : public QuicSpdySession, |
36 public QuicCryptoClientStream::ProofHandler { | 36 public QuicCryptoClientStream::ProofHandler { |
37 public: | 37 public: |
38 // Caller retains ownership of |promised_by_url|. | 38 // Caller retains ownership of |promised_by_url|. |
39 QuicClientSessionBase(QuicConnection* connection, | 39 QuicClientSessionBase(QuicConnection* connection, |
40 QuicClientPushPromiseIndex* push_promise_index, | 40 QuicClientPushPromiseIndex* push_promise_index, |
41 const QuicConfig& config); | 41 const QuicConfig& config); |
42 | 42 |
43 ~QuicClientSessionBase() override; | 43 ~QuicClientSessionBase() override; |
44 | 44 |
| 45 void OnConfigNegotiated() override; |
| 46 |
45 // Override base class to set FEC policy before any data is sent by client. | 47 // Override base class to set FEC policy before any data is sent by client. |
46 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; | 48 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; |
47 | 49 |
48 // Called by |headers_stream_| when push promise headers have been | 50 // Called by |headers_stream_| when push promise headers have been |
49 // received for a stream. | 51 // received for a stream. |
50 void OnPromiseHeaders(QuicStreamId stream_id, | 52 void OnPromiseHeaders(QuicStreamId stream_id, |
51 base::StringPiece headers_data) override; | 53 base::StringPiece headers_data) override; |
52 | 54 |
53 // Called by |headers_stream_| when push promise headers have been | 55 // Called by |headers_stream_| when push promise headers have been |
54 // completely received. | 56 // completely received. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 QuicClientPushPromiseIndex* push_promise_index_; | 129 QuicClientPushPromiseIndex* push_promise_index_; |
128 QuicPromisedByIdMap promised_by_id_; | 130 QuicPromisedByIdMap promised_by_id_; |
129 QuicStreamId largest_promised_stream_id_; | 131 QuicStreamId largest_promised_stream_id_; |
130 | 132 |
131 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); | 133 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); |
132 }; | 134 }; |
133 | 135 |
134 } // namespace net | 136 } // namespace net |
135 | 137 |
136 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ | 138 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
OLD | NEW |