| 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_CHROMIUM_QUIC_HTTP_STREAM_H_ | 5 #ifndef NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ |
| 6 #define NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ | 6 #define NET_QUIC_CHROMIUM_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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Sets |response_status_| to |response_status| and sets | 143 // Sets |response_status_| to |response_status| and sets |
| 144 // |has_response_status_| to true. | 144 // |has_response_status_| to true. |
| 145 void SetResponseStatus(int response_status); | 145 void SetResponseStatus(int response_status); |
| 146 // Computes the correct response status based on the status of the handshake, | 146 // Computes the correct response status based on the status of the handshake, |
| 147 // |session_error|, |connection_error| and |stream_error|. | 147 // |session_error|, |connection_error| and |stream_error|. |
| 148 int ComputeResponseStatus() const; | 148 int ComputeResponseStatus() const; |
| 149 | 149 |
| 150 State next_state_; | 150 State next_state_; |
| 151 | 151 |
| 152 base::WeakPtr<QuicChromiumClientSession> session_; | 152 base::WeakPtr<QuicChromiumClientSession> session_; |
| 153 const QuicServerId server_id_; // The ID of the QUIC server for this stream. |
| 153 | 154 |
| 154 HttpServerProperties* http_server_properties_; | 155 HttpServerProperties* http_server_properties_; // Unowned. |
| 155 | 156 |
| 156 QuicVersion quic_version_; | 157 QuicVersion quic_version_; |
| 157 int session_error_; // Error code from the connection shutdown. | 158 int session_error_; // Error code from the connection shutdown. |
| 158 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. | 159 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. |
| 159 QuicChromiumClientSession::StreamRequest stream_request_; | 160 QuicChromiumClientSession::StreamRequest stream_request_; |
| 160 QuicChromiumClientStream* stream_; // Non-owning. | 161 QuicChromiumClientStream* stream_; // Non-owning. |
| 161 | 162 |
| 162 // The following three fields are all owned by the caller and must | 163 // The following three fields are all owned by the caller and must |
| 163 // outlive this object, according to the HttpStream contract. | 164 // outlive this object, according to the HttpStream contract. |
| 164 | 165 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 LoadTimingInfo::ConnectTiming connect_timing_; | 236 LoadTimingInfo::ConnectTiming connect_timing_; |
| 236 | 237 |
| 237 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 238 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
| 238 | 239 |
| 239 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 240 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 } // namespace net | 243 } // namespace net |
| 243 | 244 |
| 244 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ | 245 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ |
| OLD | NEW |