| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // The initial receive window size for both streams and sessions. | 55 // The initial receive window size for both streams and sessions. |
| 56 const int32 kDefaultInitialRecvWindowSize = 10 * 1024 * 1024; // 10MB | 56 const int32 kDefaultInitialRecvWindowSize = 10 * 1024 * 1024; // 10MB |
| 57 | 57 |
| 58 class BoundNetLog; | 58 class BoundNetLog; |
| 59 struct LoadTimingInfo; | 59 struct LoadTimingInfo; |
| 60 class SpdyStream; | 60 class SpdyStream; |
| 61 class SSLInfo; | 61 class SSLInfo; |
| 62 | 62 |
| 63 // NOTE: There's an enum of the same name (also with numeric suffixes) | 63 // NOTE: There's an enum of the same name (also with numeric suffixes) |
| 64 // in histograms.xml. | 64 // in histograms.xml. |
| 65 // |
| 66 // WARNING: DO NOT INSERT ENUMS INTO THIS LIST! Add only to the end. |
| 65 enum SpdyProtocolErrorDetails { | 67 enum SpdyProtocolErrorDetails { |
| 66 // SpdyFramer::SpdyErrors | 68 // SpdyFramer::SpdyErrors |
| 67 SPDY_ERROR_NO_ERROR, | 69 SPDY_ERROR_NO_ERROR, |
| 68 SPDY_ERROR_INVALID_CONTROL_FRAME, | 70 SPDY_ERROR_INVALID_CONTROL_FRAME, |
| 69 SPDY_ERROR_CONTROL_PAYLOAD_TOO_LARGE, | 71 SPDY_ERROR_CONTROL_PAYLOAD_TOO_LARGE, |
| 70 SPDY_ERROR_ZLIB_INIT_FAILURE, | 72 SPDY_ERROR_ZLIB_INIT_FAILURE, |
| 71 SPDY_ERROR_UNSUPPORTED_VERSION, | 73 SPDY_ERROR_UNSUPPORTED_VERSION, |
| 72 SPDY_ERROR_DECOMPRESS_FAILURE, | 74 SPDY_ERROR_DECOMPRESS_FAILURE, |
| 73 SPDY_ERROR_COMPRESS_FAILURE, | 75 SPDY_ERROR_COMPRESS_FAILURE, |
| 74 SPDY_ERROR_CREDENTIAL_FRAME_CORRUPT, | 76 SPDY_ERROR_CREDENTIAL_FRAME_CORRUPT, |
| 75 SPDY_ERROR_INVALID_DATA_FRAME_FLAGS, | 77 SPDY_ERROR_INVALID_DATA_FRAME_FLAGS, |
| 76 SPDY_ERROR_INVALID_CONTROL_FRAME_FLAGS, | 78 SPDY_ERROR_INVALID_CONTROL_FRAME_FLAGS, |
| 77 | |
| 78 // SpdyRstStreamStatus | 79 // SpdyRstStreamStatus |
| 79 STATUS_CODE_INVALID, | 80 STATUS_CODE_INVALID, |
| 80 STATUS_CODE_PROTOCOL_ERROR, | 81 STATUS_CODE_PROTOCOL_ERROR, |
| 81 STATUS_CODE_INVALID_STREAM, | 82 STATUS_CODE_INVALID_STREAM, |
| 82 STATUS_CODE_REFUSED_STREAM, | 83 STATUS_CODE_REFUSED_STREAM, |
| 83 STATUS_CODE_UNSUPPORTED_VERSION, | 84 STATUS_CODE_UNSUPPORTED_VERSION, |
| 84 STATUS_CODE_CANCEL, | 85 STATUS_CODE_CANCEL, |
| 85 STATUS_CODE_INTERNAL_ERROR, | 86 STATUS_CODE_INTERNAL_ERROR, |
| 86 STATUS_CODE_FLOW_CONTROL_ERROR, | 87 STATUS_CODE_FLOW_CONTROL_ERROR, |
| 87 STATUS_CODE_STREAM_IN_USE, | 88 STATUS_CODE_STREAM_IN_USE, |
| 88 STATUS_CODE_STREAM_ALREADY_CLOSED, | 89 STATUS_CODE_STREAM_ALREADY_CLOSED, |
| 89 STATUS_CODE_INVALID_CREDENTIALS, | 90 STATUS_CODE_INVALID_CREDENTIALS, |
| 90 STATUS_CODE_FRAME_TOO_LARGE, | 91 STATUS_CODE_FRAME_TOO_LARGE, |
| 91 | |
| 92 // SpdySession errors | 92 // SpdySession errors |
| 93 PROTOCOL_ERROR_UNEXPECTED_PING, | 93 PROTOCOL_ERROR_UNEXPECTED_PING, |
| 94 PROTOCOL_ERROR_RST_STREAM_FOR_NON_ACTIVE_STREAM, | 94 PROTOCOL_ERROR_RST_STREAM_FOR_NON_ACTIVE_STREAM, |
| 95 PROTOCOL_ERROR_SPDY_COMPRESSION_FAILURE, | 95 PROTOCOL_ERROR_SPDY_COMPRESSION_FAILURE, |
| 96 PROTOCOL_ERROR_REQUEST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION, | 96 PROTOCOL_ERROR_REQUEST_FOR_SECURE_CONTENT_OVER_INSECURE_SESSION, |
| 97 PROTOCOL_ERROR_SYN_REPLY_NOT_RECEIVED, | 97 PROTOCOL_ERROR_SYN_REPLY_NOT_RECEIVED, |
| 98 PROTOCOL_ERROR_INVALID_WINDOW_UPDATE_SIZE, | 98 PROTOCOL_ERROR_INVALID_WINDOW_UPDATE_SIZE, |
| 99 PROTOCOL_ERROR_RECEIVE_WINDOW_VIOLATION, | 99 PROTOCOL_ERROR_RECEIVE_WINDOW_VIOLATION, |
| 100 NUM_SPDY_PROTOCOL_ERROR_DETAILS | 100 NUM_SPDY_PROTOCOL_ERROR_DETAILS |
| 101 }; | 101 }; |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 // This SPDY proxy is allowed to push resources from origins that are | 945 // This SPDY proxy is allowed to push resources from origins that are |
| 946 // different from those of their associated streams. | 946 // different from those of their associated streams. |
| 947 HostPortPair trusted_spdy_proxy_; | 947 HostPortPair trusted_spdy_proxy_; |
| 948 | 948 |
| 949 TimeFunc time_func_; | 949 TimeFunc time_func_; |
| 950 }; | 950 }; |
| 951 | 951 |
| 952 } // namespace net | 952 } // namespace net |
| 953 | 953 |
| 954 #endif // NET_SPDY_SPDY_SESSION_H_ | 954 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |