Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1297)

Side by Side Diff: net/spdy/spdy_framer.h

Issue 1989003002: QUIC - add instrumentation to HPACK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase-update Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/hpack/hpack_header_table.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/hpack/hpack_header_table.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698