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 #include "net/tools/quic/quic_simple_client.h" | 5 #include "net/tools/quic/quic_simple_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "net/http/http_request_info.h" | 13 #include "net/http/http_request_info.h" |
14 #include "net/http/http_response_info.h" | 14 #include "net/http/http_response_info.h" |
15 #include "net/quic/chromium/quic_chromium_alarm_factory.h" | 15 #include "net/quic/chromium/quic_chromium_alarm_factory.h" |
16 #include "net/quic/chromium/quic_chromium_connection_helper.h" | 16 #include "net/quic/chromium/quic_chromium_connection_helper.h" |
17 #include "net/quic/chromium/quic_chromium_packet_reader.h" | 17 #include "net/quic/chromium/quic_chromium_packet_reader.h" |
18 #include "net/quic/chromium/quic_chromium_packet_writer.h" | 18 #include "net/quic/chromium/quic_chromium_packet_writer.h" |
19 #include "net/quic/crypto/quic_random.h" | 19 #include "net/quic/core/crypto/quic_random.h" |
20 #include "net/quic/quic_connection.h" | 20 #include "net/quic/core/quic_connection.h" |
21 #include "net/quic/quic_flags.h" | 21 #include "net/quic/core/quic_flags.h" |
22 #include "net/quic/quic_protocol.h" | 22 #include "net/quic/core/quic_protocol.h" |
23 #include "net/quic/quic_server_id.h" | 23 #include "net/quic/core/quic_server_id.h" |
24 #include "net/quic/spdy_utils.h" | 24 #include "net/quic/core/spdy_utils.h" |
25 #include "net/spdy/spdy_header_block.h" | 25 #include "net/spdy/spdy_header_block.h" |
26 #include "net/spdy/spdy_http_utils.h" | 26 #include "net/spdy/spdy_http_utils.h" |
27 #include "net/udp/udp_client_socket.h" | 27 #include "net/udp/udp_client_socket.h" |
28 | 28 |
29 using std::string; | 29 using std::string; |
30 using std::vector; | 30 using std::vector; |
31 | 31 |
32 namespace net { | 32 namespace net { |
33 | 33 |
34 void QuicSimpleClient::ClientQuicDataToResend::Resend() { | 34 void QuicSimpleClient::ClientQuicDataToResend::Resend() { |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 session()->connection()->ProcessUdpPacket(local_address, peer_address, | 408 session()->connection()->ProcessUdpPacket(local_address, peer_address, |
409 packet); | 409 packet); |
410 if (!session()->connection()->connected()) { | 410 if (!session()->connection()->connected()) { |
411 return false; | 411 return false; |
412 } | 412 } |
413 | 413 |
414 return true; | 414 return true; |
415 } | 415 } |
416 | 416 |
417 } // namespace net | 417 } // namespace net |
OLD | NEW |