OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BASE_NET_ERROR_DETAILS_H_ | 5 #ifndef NET_BASE_NET_ERROR_DETAILS_H_ |
6 #define NET_BASE_NET_ERROR_DETAILS_H_ | 6 #define NET_BASE_NET_ERROR_DETAILS_H_ |
7 | 7 |
8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
9 #include "net/http/http_response_info.h" | 9 #include "net/http/http_response_info.h" |
10 #include "net/quic/core/quic_protocol.h" | 10 #include "net/quic/core/quic_packets.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 // A record of net errors with granular error specification generated by | 14 // A record of net errors with granular error specification generated by |
15 // net stack. | 15 // net stack. |
16 struct NET_EXPORT NetErrorDetails { | 16 struct NET_EXPORT NetErrorDetails { |
17 NetErrorDetails() | 17 NetErrorDetails() |
18 : quic_broken(false), | 18 : quic_broken(false), |
19 quic_connection_error(QUIC_NO_ERROR), | 19 quic_connection_error(QUIC_NO_ERROR), |
20 connection_info(HttpResponseInfo::CONNECTION_INFO_UNKNOWN), | 20 connection_info(HttpResponseInfo::CONNECTION_INFO_UNKNOWN), |
(...skipping 14 matching lines...) Expand all Loading... |
35 // from response header from the server. | 35 // from response header from the server. |
36 HttpResponseInfo::ConnectionInfo connection_info; | 36 HttpResponseInfo::ConnectionInfo connection_info; |
37 // True if receives a GoAway frame from the server due to connection | 37 // True if receives a GoAway frame from the server due to connection |
38 // migration with port change. | 38 // migration with port change. |
39 bool quic_port_migration_detected; | 39 bool quic_port_migration_detected; |
40 }; | 40 }; |
41 | 41 |
42 } // namespace net | 42 } // namespace net |
43 | 43 |
44 #endif | 44 #endif |
OLD | NEW |