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 // TODO(ukai): code is similar with http_network_transaction.cc. We should | 5 // TODO(ukai): code is similar with http_network_transaction.cc. We should |
6 // think about ways to share code, if possible. | 6 // think about ways to share code, if possible. |
7 | 7 |
8 #include "net/socket_stream/socket_stream.h" | 8 #include "net/socket_stream/socket_stream.h" |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "net/base/auth.h" | 22 #include "net/base/auth.h" |
23 #include "net/base/io_buffer.h" | 23 #include "net/base/io_buffer.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
26 #include "net/dns/host_resolver.h" | 26 #include "net/dns/host_resolver.h" |
27 #include "net/http/http_auth_controller.h" | 27 #include "net/http/http_auth_controller.h" |
28 #include "net/http/http_network_session.h" | 28 #include "net/http/http_network_session.h" |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 context_->transport_security_state()->GetDomainState(url_.host(), | 1310 context_->transport_security_state()->GetDomainState(url_.host(), |
1311 SSLConfigService::IsSNIAvailable(context_->ssl_config_service()), | 1311 SSLConfigService::IsSNIAvailable(context_->ssl_config_service()), |
1312 &domain_state) && | 1312 &domain_state) && |
1313 domain_state.ShouldSSLErrorsBeFatal(); | 1313 domain_state.ShouldSSLErrorsBeFatal(); |
1314 | 1314 |
1315 delegate_->OnSSLCertificateError(this, ssl_info, fatal); | 1315 delegate_->OnSSLCertificateError(this, ssl_info, fatal); |
1316 return ERR_IO_PENDING; | 1316 return ERR_IO_PENDING; |
1317 } | 1317 } |
1318 | 1318 |
1319 } // namespace net | 1319 } // namespace net |
OLD | NEW |