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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "base/strings/stringprintf.h" | 50 #include "base/strings/stringprintf.h" |
51 #include "net/base/ip_address.h" | 51 #include "net/base/ip_address.h" |
52 #include "net/base/ip_endpoint.h" | 52 #include "net/base/ip_endpoint.h" |
53 #include "net/base/net_errors.h" | 53 #include "net/base/net_errors.h" |
54 #include "net/base/privacy_mode.h" | 54 #include "net/base/privacy_mode.h" |
55 #include "net/cert/cert_verifier.h" | 55 #include "net/cert/cert_verifier.h" |
56 #include "net/cert/multi_log_ct_verifier.h" | 56 #include "net/cert/multi_log_ct_verifier.h" |
57 #include "net/http/transport_security_state.h" | 57 #include "net/http/transport_security_state.h" |
58 #include "net/log/net_log.h" | 58 #include "net/log/net_log.h" |
59 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" | 59 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
60 #include "net/quic/quic_flags.h" | 60 #include "net/quic/core/quic_flags.h" |
61 #include "net/quic/quic_protocol.h" | 61 #include "net/quic/core/quic_protocol.h" |
62 #include "net/quic/quic_server_id.h" | 62 #include "net/quic/core/quic_server_id.h" |
63 #include "net/quic/quic_utils.h" | 63 #include "net/quic/core/quic_utils.h" |
64 #include "net/spdy/spdy_header_block.h" | 64 #include "net/spdy/spdy_header_block.h" |
65 #include "net/tools/epoll_server/epoll_server.h" | 65 #include "net/tools/epoll_server/epoll_server.h" |
66 #include "net/tools/quic/quic_client.h" | 66 #include "net/tools/quic/quic_client.h" |
67 #include "net/tools/quic/spdy_balsa_utils.h" | 67 #include "net/tools/quic/spdy_balsa_utils.h" |
68 #include "net/tools/quic/synchronous_host_resolver.h" | 68 #include "net/tools/quic/synchronous_host_resolver.h" |
69 #include "url/gurl.h" | 69 #include "url/gurl.h" |
70 | 70 |
71 using base::StringPiece; | 71 using base::StringPiece; |
72 using net::CertVerifier; | 72 using net::CertVerifier; |
73 using net::CTPolicyEnforcer; | 73 using net::CTPolicyEnforcer; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 return 0; | 354 return 0; |
355 } else { | 355 } else { |
356 cout << "Request failed (redirect " << response_code << ")." << endl; | 356 cout << "Request failed (redirect " << response_code << ")." << endl; |
357 return 1; | 357 return 1; |
358 } | 358 } |
359 } else { | 359 } else { |
360 cerr << "Request failed (" << response_code << ")." << endl; | 360 cerr << "Request failed (" << response_code << ")." << endl; |
361 return 1; | 361 return 1; |
362 } | 362 } |
363 } | 363 } |
OLD | NEW |