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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
15 #include "net/quic/core/quic_framer.h" | 15 #include "net/quic/core/quic_framer.h" |
16 #include "net/quic/core/quic_protocol.h" | 16 #include "net/quic/core/quic_protocol.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 struct QuicAckFrame; | 20 struct QuicAckFrame; |
21 class QuicConnection; | |
22 class QuicConnectionVisitorInterface; | |
23 class QuicPacketCreator; | |
24 class SendAlgorithmInterface; | |
25 | 21 |
26 namespace test { | 22 namespace test { |
27 | 23 |
28 class SimpleFramerVisitor; | 24 class SimpleFramerVisitor; |
29 | 25 |
30 // Peer to make public a number of otherwise private QuicFramer methods. | 26 // Peer to make public a number of otherwise private QuicFramer methods. |
31 class SimpleQuicFramer { | 27 class SimpleQuicFramer { |
32 public: | 28 public: |
33 SimpleQuicFramer(); | 29 SimpleQuicFramer(); |
34 explicit SimpleQuicFramer(const QuicVersionVector& supported_versions); | 30 explicit SimpleQuicFramer(const QuicVersionVector& supported_versions); |
(...skipping 25 matching lines...) Expand all Loading... |
60 QuicFramer framer_; | 56 QuicFramer framer_; |
61 std::unique_ptr<SimpleFramerVisitor> visitor_; | 57 std::unique_ptr<SimpleFramerVisitor> visitor_; |
62 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); | 58 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); |
63 }; | 59 }; |
64 | 60 |
65 } // namespace test | 61 } // namespace test |
66 | 62 |
67 } // namespace net | 63 } // namespace net |
68 | 64 |
69 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ | 65 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ |
OLD | NEW |