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_FRAMER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAMER_H_ |
6 #define NET_SPDY_SPDY_FRAMER_H_ | 6 #define NET_SPDY_SPDY_FRAMER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 // SPDY error codes. | 264 // SPDY error codes. |
265 enum SpdyError { | 265 enum SpdyError { |
266 SPDY_NO_ERROR, | 266 SPDY_NO_ERROR, |
267 SPDY_INVALID_CONTROL_FRAME, // Control frame is mal-formatted. | 267 SPDY_INVALID_CONTROL_FRAME, // Control frame is mal-formatted. |
268 SPDY_CONTROL_PAYLOAD_TOO_LARGE, // Control frame payload was too large. | 268 SPDY_CONTROL_PAYLOAD_TOO_LARGE, // Control frame payload was too large. |
269 SPDY_ZLIB_INIT_FAILURE, // The Zlib library could not initialize. | 269 SPDY_ZLIB_INIT_FAILURE, // The Zlib library could not initialize. |
270 SPDY_UNSUPPORTED_VERSION, // Control frame has unsupported version. | 270 SPDY_UNSUPPORTED_VERSION, // Control frame has unsupported version. |
271 SPDY_DECOMPRESS_FAILURE, // There was an error decompressing. | 271 SPDY_DECOMPRESS_FAILURE, // There was an error decompressing. |
272 SPDY_COMPRESS_FAILURE, // There was an error compressing. | 272 SPDY_COMPRESS_FAILURE, // There was an error compressing. |
273 SPDY_CREDENTIAL_FRAME_CORRUPT, // CREDENTIAL frame could not be parsed. | 273 SPDY_CREDENTIAL_FRAME_CORRUPT, // CREDENTIAL frame could not be parsed. |
274 SPDY_INVALID_DATA_FRAME_FLAGS, // Data frame has invalid flags. | 274 SPDY_INVALID_DATA_FRAME_FLAGS, // Data frame has invalid flags. |
Ryan Hamilton
2013/02/07 17:07:45
nit: please fix the indentation of the comments.
akalin
2013/02/12 06:50:12
Done. Was due to p4diff.
| |
275 SPDY_INVALID_CONTROL_FRAME_FLAGS, // Control frame has invalid flags. | |
275 | 276 |
276 LAST_ERROR, // Must be the last entry in the enum. | 277 LAST_ERROR, // Must be the last entry in the enum. |
277 }; | 278 }; |
278 | 279 |
279 // The minimum supported SPDY version that SpdyFramer can speak. | 280 // The minimum supported SPDY version that SpdyFramer can speak. |
280 static const int kMinSpdyVersion; | 281 static const int kMinSpdyVersion; |
281 | 282 |
282 // The maximum supported SPDY version that SpdyFramer can speak. | 283 // The maximum supported SPDY version that SpdyFramer can speak. |
283 static const int kMaxSpdyVersion; | 284 static const int kMaxSpdyVersion; |
284 | 285 |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
635 // starts with HTTP. If it does, we likely have an HTTP response. This | 636 // starts with HTTP. If it does, we likely have an HTTP response. This |
636 // isn't guaranteed though: we could have gotten a settings frame and then | 637 // isn't guaranteed though: we could have gotten a settings frame and then |
637 // corrupt data that just looks like HTTP, but deterministic checking requires | 638 // corrupt data that just looks like HTTP, but deterministic checking requires |
638 // a lot more state. | 639 // a lot more state. |
639 bool probable_http_response_; | 640 bool probable_http_response_; |
640 }; | 641 }; |
641 | 642 |
642 } // namespace net | 643 } // namespace net |
643 | 644 |
644 #endif // NET_SPDY_SPDY_FRAMER_H_ | 645 #endif // NET_SPDY_SPDY_FRAMER_H_ |
OLD | NEW |