| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/flip_server/flip_config.h" | 5 #include "net/tools/flip_server/flip_config.h" |
| 6 | 6 |
| 7 #include <unistd.h> | 7 #include <unistd.h> |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 VLOG(1) << "\tHTTP Server : " << http_server_ip_ << ":" << http_server_port_; | 84 VLOG(1) << "\tHTTP Server : " << http_server_ip_ << ":" << http_server_port_; |
| 85 VLOG(1) << "\tHTTPS Server : " << https_server_ip_ << ":" | 85 VLOG(1) << "\tHTTPS Server : " << https_server_ip_ << ":" |
| 86 << https_server_port_; | 86 << https_server_port_; |
| 87 VLOG(1) << "\tSSL : " << (ssl_cert_filename.size() ? "true" | 87 VLOG(1) << "\tSSL : " << (ssl_cert_filename.size() ? "true" |
| 88 : "false"); | 88 : "false"); |
| 89 VLOG(1) << "\tCertificate : " << ssl_cert_filename; | 89 VLOG(1) << "\tCertificate : " << ssl_cert_filename; |
| 90 VLOG(1) << "\tKey : " << ssl_key_filename; | 90 VLOG(1) << "\tKey : " << ssl_key_filename; |
| 91 VLOG(1) << "\tSpdy Only : " << (spdy_only ? "true" : "false"); | 91 VLOG(1) << "\tSpdy Only : " << (spdy_only ? "true" : "false"); |
| 92 } | 92 } |
| 93 | 93 |
| 94 FlipAcceptor::~FlipAcceptor() {} | 94 FlipAcceptor::~FlipAcceptor() { |
| 95 } |
| 95 | 96 |
| 96 FlipConfig::FlipConfig() | 97 FlipConfig::FlipConfig() |
| 97 : server_think_time_in_s_(0), | 98 : server_think_time_in_s_(0), |
| 98 log_destination_(logging::LOG_TO_SYSTEM_DEBUG_LOG), | 99 log_destination_(logging::LOG_TO_SYSTEM_DEBUG_LOG), |
| 99 wait_for_iface_(false) {} | 100 wait_for_iface_(false) { |
| 101 } |
| 100 | 102 |
| 101 FlipConfig::~FlipConfig() {} | 103 FlipConfig::~FlipConfig() { |
| 104 } |
| 102 | 105 |
| 103 void FlipConfig::AddAcceptor(enum FlipHandlerType flip_handler_type, | 106 void FlipConfig::AddAcceptor(enum FlipHandlerType flip_handler_type, |
| 104 std::string listen_ip, | 107 std::string listen_ip, |
| 105 std::string listen_port, | 108 std::string listen_port, |
| 106 std::string ssl_cert_filename, | 109 std::string ssl_cert_filename, |
| 107 std::string ssl_key_filename, | 110 std::string ssl_key_filename, |
| 108 std::string http_server_ip, | 111 std::string http_server_ip, |
| 109 std::string http_server_port, | 112 std::string http_server_port, |
| 110 std::string https_server_ip, | 113 std::string https_server_ip, |
| 111 std::string https_server_port, | 114 std::string https_server_port, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 129 spdy_only, | 132 spdy_only, |
| 130 accept_backlog_size, | 133 accept_backlog_size, |
| 131 disable_nagle, | 134 disable_nagle, |
| 132 accepts_per_wake, | 135 accepts_per_wake, |
| 133 reuseport, | 136 reuseport, |
| 134 wait_for_iface, | 137 wait_for_iface, |
| 135 memory_cache)); | 138 memory_cache)); |
| 136 } | 139 } |
| 137 | 140 |
| 138 } // namespace net | 141 } // namespace net |
| OLD | NEW |