Index: net/spdy/spdy_framer.cc |
=================================================================== |
--- net/spdy/spdy_framer.cc (revision 105257) |
+++ net/spdy/spdy_framer.cc (working copy) |
@@ -835,6 +835,15 @@ |
return (data_frame.flags() & DATA_FLAG_COMPRESSED) != 0; |
} |
+bool SpdyFramer::IsPingFrame(const SpdyFrame& frame) const { |
+ if (frame.is_control_frame()) { |
+ const SpdyControlFrame& control_frame = |
+ reinterpret_cast<const SpdyControlFrame&>(frame); |
+ return control_frame.type() == PING; |
+ } |
+ return false; |
+} |
+ |
const char* SpdyFramer::StateToString(int state) { |
switch (state) { |
case SPDY_ERROR: |