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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 void set_recv_frame_size_limit(size_t recv_frame_size_limit) { | 546 void set_recv_frame_size_limit(size_t recv_frame_size_limit) { |
547 recv_frame_size_limit_ = recv_frame_size_limit; | 547 recv_frame_size_limit_ = recv_frame_size_limit; |
548 } | 548 } |
549 | 549 |
550 void SetDecoderHeaderTableDebugVisitor( | 550 void SetDecoderHeaderTableDebugVisitor( |
551 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); | 551 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
552 | 552 |
553 void SetEncoderHeaderTableDebugVisitor( | 553 void SetEncoderHeaderTableDebugVisitor( |
554 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); | 554 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
555 | 555 |
| 556 // For use in SpdyFramerDecoderAdapter implementations; returns a HPACK |
| 557 // decoder to be used. |
| 558 HpackDecoderInterface* GetHpackDecoderForAdapter() { |
| 559 return GetHpackDecoder(); |
| 560 } |
| 561 |
556 protected: | 562 protected: |
557 friend class BufferedSpdyFramer; | 563 friend class BufferedSpdyFramer; |
558 friend class HttpNetworkLayer; // This is temporary for the server. | 564 friend class HttpNetworkLayer; // This is temporary for the server. |
559 friend class HttpNetworkTransactionTest; | 565 friend class HttpNetworkTransactionTest; |
560 friend class HttpProxyClientSocketPoolTest; | 566 friend class HttpProxyClientSocketPoolTest; |
561 friend class SpdyHttpStreamTest; | 567 friend class SpdyHttpStreamTest; |
562 friend class SpdyNetworkTransactionTest; | 568 friend class SpdyNetworkTransactionTest; |
563 friend class SpdyProxyClientSocketTest; | 569 friend class SpdyProxyClientSocketTest; |
564 friend class SpdySessionTest; | 570 friend class SpdySessionTest; |
565 friend class SpdyStreamTest; | 571 friend class SpdyStreamTest; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 bool end_stream_when_done_; | 781 bool end_stream_when_done_; |
776 | 782 |
777 // If true, then ProcessInput returns after processing a full frame, | 783 // If true, then ProcessInput returns after processing a full frame, |
778 // rather than reading all available input. | 784 // rather than reading all available input. |
779 bool process_single_input_frame_ = false; | 785 bool process_single_input_frame_ = false; |
780 }; | 786 }; |
781 | 787 |
782 } // namespace net | 788 } // namespace net |
783 | 789 |
784 #endif // NET_SPDY_SPDY_FRAMER_H_ | 790 #endif // NET_SPDY_SPDY_FRAMER_H_ |
OLD | NEW |