Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: net/quic/quic_client_session_base.h

Issue 1910593004: Plumbs new SpdyFramerVisitorInterface method handling through QUIC test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119562680
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_client_session_base.cc » ('j') | net/quic/spdy_utils.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Override base class to set FEC policy before any data is sent by client. 45 // Override base class to set FEC policy before any data is sent by client.
46 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; 46 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override;
47 47
48 // Called by |headers_stream_| when push promise headers have been 48 // Called by |headers_stream_| when push promise headers have been
49 // received for a stream. 49 // received for a stream.
50 void OnPromiseHeaders(QuicStreamId stream_id, 50 void OnPromiseHeaders(QuicStreamId stream_id,
51 StringPiece headers_data) override; 51 StringPiece headers_data) override;
52 52
53 // Called by |headers_stream_| when push promise headers have been 53 // Called by |headers_stream_| when push promise headers have been
54 // completely received. |fin| will be true if the fin flag was set 54 // completely received.
55 // in the headers.
56 void OnPromiseHeadersComplete(QuicStreamId stream_id, 55 void OnPromiseHeadersComplete(QuicStreamId stream_id,
57 QuicStreamId promised_stream_id, 56 QuicStreamId promised_stream_id,
58 size_t frame_len) override; 57 size_t frame_len) override;
59 58
59 // Called by |headers_stream_| when push promise headers have been
60 // completely received.
61 void OnPromiseHeaderList(QuicStreamId stream_id,
62 QuicStreamId promised_stream_id,
63 size_t frame_len,
64 const QuicHeaderList& header_list) override;
65
60 // Called by |QuicSpdyClientStream| on receipt of response headers, 66 // Called by |QuicSpdyClientStream| on receipt of response headers,
61 // needed to detect promised server push streams, as part of 67 // needed to detect promised server push streams, as part of
62 // client-request to push-stream rendezvous. 68 // client-request to push-stream rendezvous.
63 void OnInitialHeadersComplete(QuicStreamId stream_id, 69 void OnInitialHeadersComplete(QuicStreamId stream_id,
64 const SpdyHeaderBlock& response_headers); 70 const SpdyHeaderBlock& response_headers);
65 71
66 // Called by |QuicSpdyClientStream| on receipt of PUSH_PROMISE, does 72 // Called by |QuicSpdyClientStream| on receipt of PUSH_PROMISE, does
67 // some session level validation and creates the 73 // some session level validation and creates the
68 // |QuicClientPromisedInfo| inserting into maps by (promised) id and 74 // |QuicClientPromisedInfo| inserting into maps by (promised) id and
69 // url. 75 // url.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 QuicClientPushPromiseIndex* push_promise_index_; 127 QuicClientPushPromiseIndex* push_promise_index_;
122 QuicPromisedByIdMap promised_by_id_; 128 QuicPromisedByIdMap promised_by_id_;
123 QuicStreamId largest_promised_stream_id_; 129 QuicStreamId largest_promised_stream_id_;
124 130
125 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); 131 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase);
126 }; 132 };
127 133
128 } // namespace net 134 } // namespace net
129 135
130 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ 136 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_client_session_base.cc » ('j') | net/quic/spdy_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698