| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "net/cert/multi_log_ct_verifier.h" | 52 #include "net/cert/multi_log_ct_verifier.h" |
| 53 #include "net/http/transport_security_state.h" | 53 #include "net/http/transport_security_state.h" |
| 54 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" | 54 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
| 55 #include "net/quic/core/quic_error_codes.h" | 55 #include "net/quic/core/quic_error_codes.h" |
| 56 #include "net/quic/core/quic_packets.h" | 56 #include "net/quic/core/quic_packets.h" |
| 57 #include "net/quic/core/quic_server_id.h" | 57 #include "net/quic/core/quic_server_id.h" |
| 58 #include "net/quic/platform/api/quic_socket_address.h" | 58 #include "net/quic/platform/api/quic_socket_address.h" |
| 59 #include "net/quic/platform/api/quic_str_cat.h" | 59 #include "net/quic/platform/api/quic_str_cat.h" |
| 60 #include "net/quic/platform/api/quic_string_piece.h" | 60 #include "net/quic/platform/api/quic_string_piece.h" |
| 61 #include "net/quic/platform/api/quic_text_utils.h" | 61 #include "net/quic/platform/api/quic_text_utils.h" |
| 62 #include "net/spdy/spdy_header_block.h" | 62 #include "net/spdy/chromium/spdy_http_utils.h" |
| 63 #include "net/spdy/spdy_http_utils.h" | 63 #include "net/spdy/core/spdy_header_block.h" |
| 64 #include "net/tools/quic/quic_simple_client.h" | 64 #include "net/tools/quic/quic_simple_client.h" |
| 65 #include "net/tools/quic/synchronous_host_resolver.h" | 65 #include "net/tools/quic/synchronous_host_resolver.h" |
| 66 #include "url/gurl.h" | 66 #include "url/gurl.h" |
| 67 | 67 |
| 68 using net::CertVerifier; | 68 using net::CertVerifier; |
| 69 using net::CTPolicyEnforcer; | 69 using net::CTPolicyEnforcer; |
| 70 using net::CTVerifier; | 70 using net::CTVerifier; |
| 71 using net::MultiLogCTVerifier; | 71 using net::MultiLogCTVerifier; |
| 72 using net::ProofVerifier; | 72 using net::ProofVerifier; |
| 73 using net::ProofVerifierChromium; | 73 using net::ProofVerifierChromium; |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 return 0; | 361 return 0; |
| 362 } else { | 362 } else { |
| 363 cout << "Request failed (redirect " << response_code << ")." << endl; | 363 cout << "Request failed (redirect " << response_code << ")." << endl; |
| 364 return 1; | 364 return 1; |
| 365 } | 365 } |
| 366 } else { | 366 } else { |
| 367 cerr << "Request failed (" << response_code << ")." << endl; | 367 cerr << "Request failed (" << response_code << ")." << endl; |
| 368 return 1; | 368 return 1; |
| 369 } | 369 } |
| 370 } | 370 } |
| OLD | NEW |