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_SPDY_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 STATUS_CODE_FLOW_CONTROL_ERROR, | 70 STATUS_CODE_FLOW_CONTROL_ERROR, |
71 STATUS_CODE_STREAM_IN_USE, | 71 STATUS_CODE_STREAM_IN_USE, |
72 STATUS_CODE_STREAM_ALREADY_CLOSED, | 72 STATUS_CODE_STREAM_ALREADY_CLOSED, |
73 STATUS_CODE_INVALID_CREDENTIALS, | 73 STATUS_CODE_INVALID_CREDENTIALS, |
74 STATUS_CODE_FRAME_TOO_LARGE, | 74 STATUS_CODE_FRAME_TOO_LARGE, |
75 | 75 |
76 // SpdySession errors | 76 // SpdySession errors |
77 PROTOCOL_ERROR_UNEXPECTED_PING, | 77 PROTOCOL_ERROR_UNEXPECTED_PING, |
78 PROTOCOL_ERROR_RST_STREAM_FOR_NON_ACTIVE_STREAM, | 78 PROTOCOL_ERROR_RST_STREAM_FOR_NON_ACTIVE_STREAM, |
79 PROTOCOL_ERROR_SPDY_COMPRESSION_FAILURE, | 79 PROTOCOL_ERROR_SPDY_COMPRESSION_FAILURE, |
80 PROTOCOL_ERROR_REQUST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION, | 80 PROTOCOL_ERROR_REQUEST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION, |
81 PROTOCOL_ERROR_SYN_REPLY_NOT_RECEIVED, | 81 PROTOCOL_ERROR_SYN_REPLY_NOT_RECEIVED, |
82 NUM_SPDY_PROTOCOL_ERROR_DETAILS | 82 NUM_SPDY_PROTOCOL_ERROR_DETAILS |
83 }; | 83 }; |
84 | 84 |
85 COMPILE_ASSERT(STATUS_CODE_INVALID == | 85 COMPILE_ASSERT(STATUS_CODE_INVALID == |
86 static_cast<SpdyProtocolErrorDetails>(SpdyFramer::LAST_ERROR), | 86 static_cast<SpdyProtocolErrorDetails>(SpdyFramer::LAST_ERROR), |
87 SpdyProtocolErrorDetails_SpdyErrors_mismatch); | 87 SpdyProtocolErrorDetails_SpdyErrors_mismatch); |
88 | 88 |
89 COMPILE_ASSERT(PROTOCOL_ERROR_UNEXPECTED_PING == | 89 COMPILE_ASSERT(PROTOCOL_ERROR_UNEXPECTED_PING == |
90 static_cast<SpdyProtocolErrorDetails>(NUM_STATUS_CODES + | 90 static_cast<SpdyProtocolErrorDetails>(NUM_STATUS_CODES + |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 base::TimeDelta hung_interval_; | 743 base::TimeDelta hung_interval_; |
744 | 744 |
745 // This SPDY proxy is allowed to push resources from origins that are | 745 // This SPDY proxy is allowed to push resources from origins that are |
746 // different from those of their associated streams. | 746 // different from those of their associated streams. |
747 HostPortPair trusted_spdy_proxy_; | 747 HostPortPair trusted_spdy_proxy_; |
748 }; | 748 }; |
749 | 749 |
750 } // namespace net | 750 } // namespace net |
751 | 751 |
752 #endif // NET_SPDY_SPDY_SESSION_H_ | 752 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |