| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 size_t GetBlockedSize() const; | 472 size_t GetBlockedSize() const; |
| 473 size_t GetPushPromiseMinimumSize() const; | 473 size_t GetPushPromiseMinimumSize() const; |
| 474 size_t GetContinuationMinimumSize() const; | 474 size_t GetContinuationMinimumSize() const; |
| 475 | 475 |
| 476 // Returns the minimum size a frame can be (data or control). | 476 // Returns the minimum size a frame can be (data or control). |
| 477 size_t GetFrameMinimumSize() const; | 477 size_t GetFrameMinimumSize() const; |
| 478 | 478 |
| 479 // Returns the maximum size a frame can be (data or control). | 479 // Returns the maximum size a frame can be (data or control). |
| 480 size_t GetFrameMaximumSize() const; | 480 size_t GetFrameMaximumSize() const; |
| 481 | 481 |
| 482 // Returns the maximum size that a control frame can be. |
| 483 size_t GetControlFrameMaximumSize() const; |
| 484 |
| 482 // Returns the maximum payload size of a DATA frame. | 485 // Returns the maximum payload size of a DATA frame. |
| 483 size_t GetDataFrameMaximumPayload() const; | 486 size_t GetDataFrameMaximumPayload() const; |
| 484 | 487 |
| 485 // For debugging. | 488 // For debugging. |
| 486 static const char* StateToString(int state); | 489 static const char* StateToString(int state); |
| 487 static const char* ErrorCodeToString(int error_code); | 490 static const char* ErrorCodeToString(int error_code); |
| 488 static const char* StatusCodeToString(int status_code); | 491 static const char* StatusCodeToString(int status_code); |
| 489 static const char* FrameTypeToString(SpdyFrameType type); | 492 static const char* FrameTypeToString(SpdyFrameType type); |
| 490 | 493 |
| 491 SpdyMajorVersion protocol_version() const { return spdy_version_; } | 494 SpdyMajorVersion protocol_version() const { return spdy_version_; } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM | 713 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM |
| 711 // flag is still carried in the HEADERS frame. If it's set, flip this so that | 714 // flag is still carried in the HEADERS frame. If it's set, flip this so that |
| 712 // we know to terminate the stream when the entire header block has been | 715 // we know to terminate the stream when the entire header block has been |
| 713 // processed. | 716 // processed. |
| 714 bool end_stream_when_done_; | 717 bool end_stream_when_done_; |
| 715 }; | 718 }; |
| 716 | 719 |
| 717 } // namespace net | 720 } // namespace net |
| 718 | 721 |
| 719 #endif // NET_SPDY_SPDY_FRAMER_H_ | 722 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |