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 binary wrapper for QuicClient. | 5 // A binary wrapper for QuicClient. |
6 // Connects to a host using QUIC, sends a request to the provided URL, and | 6 // Connects to a host using QUIC, sends a request to the provided URL, and |
7 // displays the response. | 7 // displays the response. |
8 // | 8 // |
9 // Some usage examples: | 9 // Some usage examples: |
10 // | 10 // |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "base/command_line.h" | 44 #include "base/command_line.h" |
45 #include "base/message_loop/message_loop.h" | 45 #include "base/message_loop/message_loop.h" |
46 #include "net/base/net_errors.h" | 46 #include "net/base/net_errors.h" |
47 #include "net/base/privacy_mode.h" | 47 #include "net/base/privacy_mode.h" |
48 #include "net/cert/cert_verifier.h" | 48 #include "net/cert/cert_verifier.h" |
49 #include "net/cert/ct_known_logs.h" | 49 #include "net/cert/ct_known_logs.h" |
50 #include "net/cert/ct_log_verifier.h" | 50 #include "net/cert/ct_log_verifier.h" |
51 #include "net/cert/multi_log_ct_verifier.h" | 51 #include "net/cert/multi_log_ct_verifier.h" |
52 #include "net/http/transport_security_state.h" | 52 #include "net/http/transport_security_state.h" |
53 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" | 53 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
54 #include "net/quic/core/quic_flags.h" | 54 #include "net/quic/platform/api/quic_flags.h" |
55 #include "net/quic/core/quic_packets.h" | 55 #include "net/quic/core/quic_packets.h" |
56 #include "net/quic/core/quic_server_id.h" | 56 #include "net/quic/core/quic_server_id.h" |
57 #include "net/quic/platform/api/quic_socket_address.h" | 57 #include "net/quic/platform/api/quic_socket_address.h" |
58 #include "net/quic/platform/api/quic_str_cat.h" | 58 #include "net/quic/platform/api/quic_str_cat.h" |
59 #include "net/quic/platform/api/quic_string_piece.h" | 59 #include "net/quic/platform/api/quic_string_piece.h" |
60 #include "net/quic/platform/api/quic_text_utils.h" | 60 #include "net/quic/platform/api/quic_text_utils.h" |
61 #include "net/quic/platform/api/quic_url.h" | 61 #include "net/quic/platform/api/quic_url.h" |
62 #include "net/spdy/spdy_header_block.h" | 62 #include "net/spdy/spdy_header_block.h" |
63 #include "net/tools/epoll_server/epoll_server.h" | 63 #include "net/tools/epoll_server/epoll_server.h" |
64 #include "net/tools/quic/quic_client.h" | 64 #include "net/tools/quic/quic_client.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 return 0; | 369 return 0; |
370 } else { | 370 } else { |
371 cout << "Request failed (redirect " << response_code << ")." << endl; | 371 cout << "Request failed (redirect " << response_code << ")." << endl; |
372 return 1; | 372 return 1; |
373 } | 373 } |
374 } else { | 374 } else { |
375 cerr << "Request failed (" << response_code << ")." << endl; | 375 cerr << "Request failed (" << response_code << ")." << endl; |
376 return 1; | 376 return 1; |
377 } | 377 } |
378 } | 378 } |
OLD | NEW |