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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 // For ease of testing and experimentation we can tweak compression on/off. | 496 // For ease of testing and experimentation we can tweak compression on/off. |
497 void set_enable_compression(bool value) { | 497 void set_enable_compression(bool value) { |
498 enable_compression_ = value; | 498 enable_compression_ = value; |
499 } | 499 } |
500 | 500 |
501 // Used only in log messages. | 501 // Used only in log messages. |
502 void set_display_protocol(const std::string& protocol) { | 502 void set_display_protocol(const std::string& protocol) { |
503 display_protocol_ = protocol; | 503 display_protocol_ = protocol; |
504 } | 504 } |
505 | 505 |
| 506 void SetDecoderHeaderTableDebugVisitor( |
| 507 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
| 508 |
| 509 void SetEncoderHeaderTableDebugVisitor( |
| 510 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
| 511 |
506 // Returns the (minimum) size of frames (sans variable-length portions). | 512 // Returns the (minimum) size of frames (sans variable-length portions). |
507 size_t GetDataFrameMinimumSize() const; | 513 size_t GetDataFrameMinimumSize() const; |
508 size_t GetControlFrameHeaderSize() const; | 514 size_t GetControlFrameHeaderSize() const; |
509 size_t GetSynStreamMinimumSize() const; | 515 size_t GetSynStreamMinimumSize() const; |
510 size_t GetSynReplyMinimumSize() const; | 516 size_t GetSynReplyMinimumSize() const; |
511 size_t GetRstStreamMinimumSize() const; | 517 size_t GetRstStreamMinimumSize() const; |
512 size_t GetSettingsMinimumSize() const; | 518 size_t GetSettingsMinimumSize() const; |
513 size_t GetPingSize() const; | 519 size_t GetPingSize() const; |
514 size_t GetGoAwayMinimumSize() const; | 520 size_t GetGoAwayMinimumSize() const; |
515 size_t GetHeadersMinimumSize() const; | 521 size_t GetHeadersMinimumSize() const; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 bool end_stream_when_done_; | 806 bool end_stream_when_done_; |
801 | 807 |
802 // If true, then ProcessInput returns after processing a full frame, | 808 // If true, then ProcessInput returns after processing a full frame, |
803 // rather than reading all available input. | 809 // rather than reading all available input. |
804 bool process_single_input_frame_ = false; | 810 bool process_single_input_frame_ = false; |
805 }; | 811 }; |
806 | 812 |
807 } // namespace net | 813 } // namespace net |
808 | 814 |
809 #endif // NET_SPDY_SPDY_FRAMER_H_ | 815 #endif // NET_SPDY_SPDY_FRAMER_H_ |
OLD | NEW |