| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 standalone tool for testing MCS connections and the MCS client on their | 5 // A standalone tool for testing MCS connections and the MCS client on their |
| 6 // own. | 6 // own. |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <cstdio> | 9 #include <cstdio> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 session_params.server_bound_cert_service = | 403 session_params.server_bound_cert_service = |
| 404 system_server_bound_cert_service_.get(); | 404 system_server_bound_cert_service_.get(); |
| 405 session_params.transport_security_state = transport_security_state_.get(); | 405 session_params.transport_security_state = transport_security_state_.get(); |
| 406 session_params.ssl_config_service = new net::SSLConfigServiceDefaults(); | 406 session_params.ssl_config_service = new net::SSLConfigServiceDefaults(); |
| 407 session_params.http_auth_handler_factory = http_auth_handler_factory_.get(); | 407 session_params.http_auth_handler_factory = http_auth_handler_factory_.get(); |
| 408 session_params.http_server_properties = | 408 session_params.http_server_properties = |
| 409 http_server_properties_->GetWeakPtr(); | 409 http_server_properties_->GetWeakPtr(); |
| 410 session_params.network_delegate = NULL; // TODO(zea): implement? | 410 session_params.network_delegate = NULL; // TODO(zea): implement? |
| 411 session_params.host_mapping_rules = host_mapping_rules_.get(); | 411 session_params.host_mapping_rules = host_mapping_rules_.get(); |
| 412 session_params.ignore_certificate_errors = true; | 412 session_params.ignore_certificate_errors = true; |
| 413 session_params.http_pipelining_enabled = false; | |
| 414 session_params.testing_fixed_http_port = 0; | 413 session_params.testing_fixed_http_port = 0; |
| 415 session_params.testing_fixed_https_port = 0; | 414 session_params.testing_fixed_https_port = 0; |
| 416 session_params.net_log = &net_log_; | 415 session_params.net_log = &net_log_; |
| 417 session_params.proxy_service = proxy_service_.get(); | 416 session_params.proxy_service = proxy_service_.get(); |
| 418 | 417 |
| 419 network_session_ = new net::HttpNetworkSession(session_params); | 418 network_session_ = new net::HttpNetworkSession(session_params); |
| 420 } | 419 } |
| 421 | 420 |
| 422 void MCSProbe::ErrorCallback() { | 421 void MCSProbe::ErrorCallback() { |
| 423 LOG(INFO) << "MCS error happened"; | 422 LOG(INFO) << "MCS error happened"; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 498 |
| 500 return 0; | 499 return 0; |
| 501 } | 500 } |
| 502 | 501 |
| 503 } // namespace | 502 } // namespace |
| 504 } // namespace gcm | 503 } // namespace gcm |
| 505 | 504 |
| 506 int main(int argc, char* argv[]) { | 505 int main(int argc, char* argv[]) { |
| 507 return gcm::MCSProbeMain(argc, argv); | 506 return gcm::MCSProbeMain(argc, argv); |
| 508 } | 507 } |
| OLD | NEW |