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

Unified Diff: net/spdy/buffered_spdy_framer.cc

Issue 9618002: SPDY - integration of spdy/3 code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.cc
===================================================================
--- net/spdy/buffered_spdy_framer.cc (revision 126086)
+++ net/spdy/buffered_spdy_framer.cc (working copy)
@@ -9,7 +9,7 @@
namespace spdy {
BufferedSpdyFramer::BufferedSpdyFramer(int version)
- : spdy_framer_(),
+ : spdy_framer_(version),
visitor_(NULL),
header_buffer_used_(0),
header_buffer_valid_(false),
@@ -49,8 +49,6 @@
*reinterpret_cast<const spdy::SpdyPingControlFrame*>(frame));
break;
case SETTINGS:
- visitor_->OnSettings(
- *reinterpret_cast<const spdy::SpdySettingsControlFrame*>(frame));
break;
case RST_STREAM:
visitor_->OnRstStream(
@@ -136,6 +134,12 @@
visitor_->OnStreamFrameData(stream_id, data, len);
}
+void BufferedSpdyFramer::OnSetting(SpdySettingsIds id,
+ uint8 flags,
+ uint32 value) {
+ visitor_->OnSetting(id, flags, value);
+}
+
int BufferedSpdyFramer::protocol_version() {
return spdy_framer_.protocol_version();
}
@@ -164,11 +168,6 @@
return spdy_framer_.HasError();
}
-bool BufferedSpdyFramer::ParseHeaderBlock(const SpdyFrame* frame,
- SpdyHeaderBlock* block) {
- return spdy_framer_.ParseHeaderBlock(frame, block);
-}
-
SpdySynStreamControlFrame* BufferedSpdyFramer::CreateSynStream(
SpdyStreamId stream_id,
SpdyStreamId associated_stream_id,
@@ -235,6 +234,10 @@
return spdy_framer_.CreateDataFrame(stream_id, data, len, flags);
}
+SpdyPriority BufferedSpdyFramer::GetHighestPriority() const {
+ return spdy_framer_.GetHighestPriority();
+}
+
SpdyFrame* BufferedSpdyFramer::CompressFrame(const SpdyFrame& frame) {
return spdy_framer_.CompressFrame(frame);
}
« no previous file with comments | « net/spdy/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698