| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 11 #include "net/http/http_request_info.h" | 11 #include "net/http/http_request_info.h" |
| 12 #include "net/http/http_response_info.h" | 12 #include "net/http/http_response_info.h" |
| 13 #include "net/quic/crypto/quic_random.h" | 13 #include "net/quic/crypto/quic_random.h" |
| 14 #include "net/quic/quic_connection.h" | 14 #include "net/quic/quic_connection.h" |
| 15 #include "net/quic/quic_connection_helper.h" | 15 #include "net/quic/quic_connection_helper.h" |
| 16 #include "net/quic/quic_default_packet_writer.h" | 16 #include "net/quic/quic_default_packet_writer.h" |
| 17 #include "net/quic/quic_flags.h" | 17 #include "net/quic/quic_flags.h" |
| 18 #include "net/quic/quic_protocol.h" | 18 #include "net/quic/quic_protocol.h" |
| 19 #include "net/quic/quic_server_id.h" | 19 #include "net/quic/quic_server_id.h" |
| 20 #include "net/quic/spdy_utils.h" | 20 #include "net/quic/spdy_utils.h" |
| 21 #include "net/spdy/spdy_header_block.h" |
| 21 #include "net/spdy/spdy_http_utils.h" | 22 #include "net/spdy/spdy_http_utils.h" |
| 22 #include "net/udp/udp_client_socket.h" | 23 #include "net/udp/udp_client_socket.h" |
| 23 | 24 |
| 24 using std::string; | 25 using std::string; |
| 25 using std::vector; | 26 using std::vector; |
| 26 | 27 |
| 27 namespace net { | 28 namespace net { |
| 28 namespace tools { | 29 namespace tools { |
| 29 | 30 |
| 30 void QuicSimpleClient::ClientQuicDataToResend::Resend() { | 31 void QuicSimpleClient::ClientQuicDataToResend::Resend() { |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 packet); | 394 packet); |
| 394 if (!session()->connection()->connected()) { | 395 if (!session()->connection()->connected()) { |
| 395 return false; | 396 return false; |
| 396 } | 397 } |
| 397 | 398 |
| 398 return true; | 399 return true; |
| 399 } | 400 } |
| 400 | 401 |
| 401 } // namespace tools | 402 } // namespace tools |
| 402 } // namespace net | 403 } // namespace net |
| OLD | NEW |