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 // A toy client, which connects to a specified port and sends QUIC | 5 // A toy client, which connects to a specified port and sends QUIC |
6 // request to that endpoint. | 6 // request to that endpoint. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "net/tools/epoll_server/epoll_server.h" | 21 #include "net/tools/epoll_server/epoll_server.h" |
22 #include "net/tools/quic/quic_client_base.h" | 22 #include "net/tools/quic/quic_client_base.h" |
23 #include "net/tools/quic/quic_client_session.h" | 23 #include "net/tools/quic/quic_client_session.h" |
24 #include "net/tools/quic/quic_packet_reader.h" | 24 #include "net/tools/quic/quic_packet_reader.h" |
25 #include "net/tools/quic/quic_process_packet_interface.h" | 25 #include "net/tools/quic/quic_process_packet_interface.h" |
26 | 26 |
27 namespace net { | 27 namespace net { |
28 | 28 |
29 class QuicServerId; | 29 class QuicServerId; |
30 | 30 |
31 class QuicEpollConnectionHelper; | |
32 | |
33 namespace test { | 31 namespace test { |
34 class QuicClientPeer; | 32 class QuicClientPeer; |
35 } // namespace test | 33 } // namespace test |
36 | 34 |
37 class QuicClient : public QuicClientBase, | 35 class QuicClient : public QuicClientBase, |
38 public EpollCallbackInterface, | 36 public EpollCallbackInterface, |
39 public ProcessPacketInterface { | 37 public ProcessPacketInterface { |
40 public: | 38 public: |
41 // Create a quic client, which will have events managed by an externally owned | 39 // Create a quic client, which will have events managed by an externally owned |
42 // EpollServer. | 40 // EpollServer. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Point to a QuicPacketReader object on the heap. The reader allocates more | 118 // Point to a QuicPacketReader object on the heap. The reader allocates more |
121 // space than allowed on the stack. | 119 // space than allowed on the stack. |
122 std::unique_ptr<QuicPacketReader> packet_reader_; | 120 std::unique_ptr<QuicPacketReader> packet_reader_; |
123 | 121 |
124 DISALLOW_COPY_AND_ASSIGN(QuicClient); | 122 DISALLOW_COPY_AND_ASSIGN(QuicClient); |
125 }; | 123 }; |
126 | 124 |
127 } // namespace net | 125 } // namespace net |
128 | 126 |
129 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 127 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
OLD | NEW |