OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HTTP_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_ |
6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ | 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 int DoReadRequestBodyComplete(int rv); | 128 int DoReadRequestBodyComplete(int rv); |
129 int DoSendBody(); | 129 int DoSendBody(); |
130 int DoSendBodyComplete(int rv); | 130 int DoSendBodyComplete(int rv); |
131 | 131 |
132 int ProcessResponseHeaders(const SpdyHeaderBlock& headers); | 132 int ProcessResponseHeaders(const SpdyHeaderBlock& headers); |
133 | 133 |
134 int ReadAvailableData(IOBuffer* buf, int buf_len); | 134 int ReadAvailableData(IOBuffer* buf, int buf_len); |
135 void EnterStateSendHeaders(); | 135 void EnterStateSendHeaders(); |
136 | 136 |
137 void ResetStream(); | 137 void ResetStream(); |
138 bool CancelPromiseIfHasBody(); | |
139 | 138 |
140 State next_state_; | 139 State next_state_; |
141 | 140 |
142 base::WeakPtr<QuicChromiumClientSession> session_; | 141 base::WeakPtr<QuicChromiumClientSession> session_; |
143 int session_error_; // Error code from the connection shutdown. | 142 int session_error_; // Error code from the connection shutdown. |
144 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. | 143 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. |
145 QuicChromiumClientSession::StreamRequest stream_request_; | 144 QuicChromiumClientSession::StreamRequest stream_request_; |
146 QuicChromiumClientStream* stream_; // Non-owning. | 145 QuicChromiumClientStream* stream_; // Non-owning. |
147 | 146 |
148 // The following three fields are all owned by the caller and must | 147 // The following three fields are all owned by the caller and must |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 LoadTimingInfo::ConnectTiming connect_timing_; | 222 LoadTimingInfo::ConnectTiming connect_timing_; |
224 | 223 |
225 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 224 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
226 | 225 |
227 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 226 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
228 }; | 227 }; |
229 | 228 |
230 } // namespace net | 229 } // namespace net |
231 | 230 |
232 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ | 231 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ |
OLD | NEW |