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

Unified Diff: net/spdy/spdy_framer.cc

Issue 2438163002: Remove SpdyFramerVisitorInterface::OnControlFrameHeaderData(). (Closed)
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | net/spdy/spdy_framer_decoder_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index 4166da92faace1468349512a3fee961eb7287bf9..ea96d206168f6b92685d7e094cdb6d7d0b95941a 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -1876,41 +1876,6 @@ size_t SpdyFramer::ProcessSettingsFramePayload(const char* data,
return processed_bytes;
}
-void SpdyFramer::DeliverHpackBlockAsSpdy3Block(size_t compressed_len) {
- DCHECK_EQ(HTTP2, protocol_version_);
- DCHECK_EQ(remaining_padding_payload_length_, remaining_data_length_);
-
- const SpdyHeaderBlock& block = GetHpackDecoder()->decoded_block();
- if (block.empty()) {
- // Special-case this to make tests happy.
- ProcessControlFrameHeaderBlock(NULL, 0, false);
- return;
- }
- size_t payload_len = GetSerializedLength(protocol_version_, &block);
- SpdyFrameBuilder builder(payload_len, SPDY3);
-
- SerializeHeaderBlockWithoutCompression(&builder, block);
- SpdySerializedFrame frame = builder.take();
-
- // Preserve padding length, and reset it after the re-entrant call.
- size_t remaining_padding = remaining_padding_payload_length_;
-
- remaining_padding_payload_length_ = 0;
- remaining_data_length_ = frame.size();
-
- if (payload_len != 0) {
- int compression_pct = 100 - (100 * compressed_len) / payload_len;
- DVLOG(1) << "Net.SpdyHpackDecompressionPercentage: " << compression_pct;
- UMA_HISTOGRAM_PERCENTAGE("Net.SpdyHpackDecompressionPercentage",
- compression_pct);
- }
-
- ProcessControlFrameHeaderBlock(frame.data(), frame.size(), false);
-
- remaining_padding_payload_length_ = remaining_padding;
- remaining_data_length_ = remaining_padding;
-}
-
bool SpdyFramer::ProcessSetting(const char* data) {
int id_field;
SpdySettingsIds id;
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | net/spdy/spdy_framer_decoder_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698