| 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 #ifndef NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
| 16 #include "net/ssl/ssl_client_cert_type.h" |
| 16 | 17 |
| 17 class GURL; | 18 class GURL; |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 class DictionaryValue; | 21 class DictionaryValue; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace net { | 24 namespace net { |
| 24 | 25 |
| 25 class AddressList; | 26 class AddressList; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // True if a CertificateRequest should be sent to the client during | 140 // True if a CertificateRequest should be sent to the client during |
| 140 // handshaking. | 141 // handshaking. |
| 141 bool request_client_certificate; | 142 bool request_client_certificate; |
| 142 | 143 |
| 143 // If |request_client_certificate| is true, an optional list of files, | 144 // If |request_client_certificate| is true, an optional list of files, |
| 144 // each containing a single, PEM-encoded X.509 certificates. The subject | 145 // each containing a single, PEM-encoded X.509 certificates. The subject |
| 145 // from each certificate will be added to the certificate_authorities | 146 // from each certificate will be added to the certificate_authorities |
| 146 // field of the CertificateRequest. | 147 // field of the CertificateRequest. |
| 147 std::vector<base::FilePath> client_authorities; | 148 std::vector<base::FilePath> client_authorities; |
| 148 | 149 |
| 150 // If |request_client_certificate| is true, an optional list of |
| 151 // SSLClientCertType values to populate the certificate_types field of the |
| 152 // CertificateRequest. |
| 153 std::vector<SSLClientCertType> client_cert_types; |
| 154 |
| 149 // A bitwise-OR of KeyExchnage that should be used by the | 155 // A bitwise-OR of KeyExchnage that should be used by the |
| 150 // HTTPS server, or KEY_EXCHANGE_ANY to indicate that all implemented | 156 // HTTPS server, or KEY_EXCHANGE_ANY to indicate that all implemented |
| 151 // key exchange algorithms are acceptable. | 157 // key exchange algorithms are acceptable. |
| 152 int key_exchanges; | 158 int key_exchanges; |
| 153 | 159 |
| 154 // A bitwise-OR of BulkCipher that should be used by the | 160 // A bitwise-OR of BulkCipher that should be used by the |
| 155 // HTTPS server, or BULK_CIPHER_ANY to indicate that all implemented | 161 // HTTPS server, or BULK_CIPHER_ANY to indicate that all implemented |
| 156 // ciphers are acceptable. | 162 // ciphers are acceptable. |
| 157 int bulk_ciphers; | 163 int bulk_ciphers; |
| 158 | 164 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 bool log_to_console_; | 297 bool log_to_console_; |
| 292 | 298 |
| 293 scoped_ptr<ScopedPortException> allowed_port_; | 299 scoped_ptr<ScopedPortException> allowed_port_; |
| 294 | 300 |
| 295 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 301 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 296 }; | 302 }; |
| 297 | 303 |
| 298 } // namespace net | 304 } // namespace net |
| 299 | 305 |
| 300 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 306 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| OLD | NEW |