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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 // in decompressed form, in chunks. Returns true if the visitor has | 581 // in decompressed form, in chunks. Returns true if the visitor has |
582 // accepted all of the chunks. | 582 // accepted all of the chunks. |
583 bool IncrementallyDecompressControlFrameHeaderData( | 583 bool IncrementallyDecompressControlFrameHeaderData( |
584 SpdyStreamId stream_id, | 584 SpdyStreamId stream_id, |
585 const char* data, | 585 const char* data, |
586 size_t len); | 586 size_t len); |
587 | 587 |
588 // Updates the maximum size of the header encoder compression table. | 588 // Updates the maximum size of the header encoder compression table. |
589 void UpdateHeaderEncoderTableSize(uint32_t value); | 589 void UpdateHeaderEncoderTableSize(uint32_t value); |
590 | 590 |
| 591 // Updates the maximum size of the header decoder compression table. |
| 592 void UpdateHeaderDecoderTableSize(uint32_t value); |
| 593 |
591 // Returns the maximum size of the header encoder compression table. | 594 // Returns the maximum size of the header encoder compression table. |
592 size_t header_encoder_table_size() const; | 595 size_t header_encoder_table_size() const; |
593 | 596 |
594 void SetDecoderHeaderTableDebugVisitor( | 597 void SetDecoderHeaderTableDebugVisitor( |
595 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); | 598 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
596 | 599 |
597 void SetEncoderHeaderTableDebugVisitor( | 600 void SetEncoderHeaderTableDebugVisitor( |
598 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); | 601 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
599 | 602 |
600 // For testing support (i.e. for clients and backends), | 603 // For testing support (i.e. for clients and backends), |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 // rather than reading all available input. | 860 // rather than reading all available input. |
858 bool process_single_input_frame_ = false; | 861 bool process_single_input_frame_ = false; |
859 | 862 |
860 bool use_new_methods_ = | 863 bool use_new_methods_ = |
861 FLAGS_chromium_http2_flag_spdy_framer_use_new_methods3; | 864 FLAGS_chromium_http2_flag_spdy_framer_use_new_methods3; |
862 }; | 865 }; |
863 | 866 |
864 } // namespace net | 867 } // namespace net |
865 | 868 |
866 #endif // NET_SPDY_SPDY_FRAMER_H_ | 869 #endif // NET_SPDY_SPDY_FRAMER_H_ |
OLD | NEW |