| 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_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class SimpleFramerVisitor; | 27 class SimpleFramerVisitor; |
| 28 | 28 |
| 29 // Peer to make public a number of otherwise private QuicFramer methods. | 29 // Peer to make public a number of otherwise private QuicFramer methods. |
| 30 class SimpleQuicFramer { | 30 class SimpleQuicFramer { |
| 31 public: | 31 public: |
| 32 SimpleQuicFramer(); | 32 SimpleQuicFramer(); |
| 33 explicit SimpleQuicFramer(const QuicVersionVector& supported_versions); | 33 explicit SimpleQuicFramer(const QuicVersionVector& supported_versions); |
| 34 ~SimpleQuicFramer(); | 34 ~SimpleQuicFramer(); |
| 35 | 35 |
| 36 bool ProcessPacket(const QuicEncryptedPacket& packet); | 36 bool ProcessPacket(const QuicEncryptedPacket& packet); |
| 37 bool ProcessPacket(const QuicPacket& packet); | |
| 38 void Reset(); | 37 void Reset(); |
| 39 | 38 |
| 40 const QuicPacketHeader& header() const; | 39 const QuicPacketHeader& header() const; |
| 41 size_t num_frames() const; | 40 size_t num_frames() const; |
| 42 const std::vector<QuicAckFrame>& ack_frames() const; | 41 const std::vector<QuicAckFrame>& ack_frames() const; |
| 43 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; | 42 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; |
| 44 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const; | 43 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const; |
| 45 const std::vector<QuicPingFrame>& ping_frames() const; | 44 const std::vector<QuicPingFrame>& ping_frames() const; |
| 46 const std::vector<QuicGoAwayFrame>& goaway_frames() const; | 45 const std::vector<QuicGoAwayFrame>& goaway_frames() const; |
| 47 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; | 46 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 59 QuicFramer framer_; | 58 QuicFramer framer_; |
| 60 scoped_ptr<SimpleFramerVisitor> visitor_; | 59 scoped_ptr<SimpleFramerVisitor> visitor_; |
| 61 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); | 60 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace test | 63 } // namespace test |
| 65 | 64 |
| 66 } // namespace net | 65 } // namespace net |
| 67 | 66 |
| 68 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 67 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
| OLD | NEW |