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

Side by Side Diff: net/quic/chromium/quic_http_stream.h

Issue 2789093003: Mark QUIC broken when the network blackholes after the handshake (Closed)
Patch Set: Rename mark_quic_broken_when_network_suspected to mark_quic_broken_when_network_blackholes Created 3 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698