| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 533 |
| 534 void SetEncoderHeaderTableDebugVisitor( | 534 void SetEncoderHeaderTableDebugVisitor( |
| 535 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); | 535 std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor); |
| 536 | 536 |
| 537 // For use in SpdyFramerDecoderAdapter implementations; returns a HPACK | 537 // For use in SpdyFramerDecoderAdapter implementations; returns a HPACK |
| 538 // decoder to be used. | 538 // decoder to be used. |
| 539 HpackDecoderInterface* GetHpackDecoderForAdapter() { | 539 HpackDecoderInterface* GetHpackDecoderForAdapter() { |
| 540 return GetHpackDecoder(); | 540 return GetHpackDecoder(); |
| 541 } | 541 } |
| 542 | 542 |
| 543 // Returns the estimate of dynamically allocated memory in bytes. |
| 544 size_t EstimateMemoryUsage() const; |
| 545 |
| 543 protected: | 546 protected: |
| 544 friend class BufferedSpdyFramer; | 547 friend class BufferedSpdyFramer; |
| 545 friend class HttpNetworkLayer; // This is temporary for the server. | 548 friend class HttpNetworkLayer; // This is temporary for the server. |
| 546 friend class HttpNetworkTransactionTest; | 549 friend class HttpNetworkTransactionTest; |
| 547 friend class HttpProxyClientSocketPoolTest; | 550 friend class HttpProxyClientSocketPoolTest; |
| 548 friend class SpdyHttpStreamTest; | 551 friend class SpdyHttpStreamTest; |
| 549 friend class SpdyNetworkTransactionTest; | 552 friend class SpdyNetworkTransactionTest; |
| 550 friend class SpdyProxyClientSocketTest; | 553 friend class SpdyProxyClientSocketTest; |
| 551 friend class SpdySessionTest; | 554 friend class SpdySessionTest; |
| 552 friend class SpdyStreamTest; | 555 friend class SpdyStreamTest; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 // rather than reading all available input. | 759 // rather than reading all available input. |
| 757 bool process_single_input_frame_ = false; | 760 bool process_single_input_frame_ = false; |
| 758 | 761 |
| 759 // Latched value of FLAGS_chromium_http2_flag_remove_rewritelength. | 762 // Latched value of FLAGS_chromium_http2_flag_remove_rewritelength. |
| 760 bool skip_rewritelength_ = false; | 763 bool skip_rewritelength_ = false; |
| 761 }; | 764 }; |
| 762 | 765 |
| 763 } // namespace net | 766 } // namespace net |
| 764 | 767 |
| 765 #endif // NET_SPDY_SPDY_FRAMER_H_ | 768 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |