OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/cast_channel/cast_socket.h" | 5 #include "extensions/browser/api/cast_channel/cast_socket.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "extensions/common/api/cast_channel/cast_channel.pb.h" | 31 #include "extensions/common/api/cast_channel/cast_channel.pb.h" |
32 #include "net/base/address_list.h" | 32 #include "net/base/address_list.h" |
33 #include "net/base/host_port_pair.h" | 33 #include "net/base/host_port_pair.h" |
34 #include "net/base/net_errors.h" | 34 #include "net/base/net_errors.h" |
35 #include "net/cert/cert_verifier.h" | 35 #include "net/cert/cert_verifier.h" |
36 #include "net/cert/cert_verify_result.h" | 36 #include "net/cert/cert_verify_result.h" |
37 #include "net/cert/ct_policy_enforcer.h" | 37 #include "net/cert/ct_policy_enforcer.h" |
38 #include "net/cert/multi_log_ct_verifier.h" | 38 #include "net/cert/multi_log_ct_verifier.h" |
39 #include "net/cert/x509_certificate.h" | 39 #include "net/cert/x509_certificate.h" |
40 #include "net/http/transport_security_state.h" | 40 #include "net/http/transport_security_state.h" |
| 41 #include "net/log/net_log.h" |
41 #include "net/log/net_log_source_type.h" | 42 #include "net/log/net_log_source_type.h" |
42 #include "net/socket/client_socket_factory.h" | 43 #include "net/socket/client_socket_factory.h" |
43 #include "net/socket/client_socket_handle.h" | 44 #include "net/socket/client_socket_handle.h" |
44 #include "net/socket/ssl_client_socket.h" | 45 #include "net/socket/ssl_client_socket.h" |
45 #include "net/socket/stream_socket.h" | 46 #include "net/socket/stream_socket.h" |
46 #include "net/socket/tcp_client_socket.h" | 47 #include "net/socket/tcp_client_socket.h" |
47 #include "net/ssl/ssl_config_service.h" | 48 #include "net/ssl/ssl_config_service.h" |
48 #include "net/ssl/ssl_info.h" | 49 #include "net/ssl/ssl_info.h" |
49 | 50 |
50 // Helper for logging data with remote host IP and authentication state. | 51 // Helper for logging data with remote host IP and authentication state. |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 VLOG_WITH_CONNECTION(1) << "SetErrorState " << error_state; | 623 VLOG_WITH_CONNECTION(1) << "SetErrorState " << error_state; |
623 DCHECK_EQ(CHANNEL_ERROR_NONE, error_state_); | 624 DCHECK_EQ(CHANNEL_ERROR_NONE, error_state_); |
624 error_state_ = error_state; | 625 error_state_ = error_state; |
625 logger_->LogSocketErrorState(channel_id_, ErrorStateToProto(error_state_)); | 626 logger_->LogSocketErrorState(channel_id_, ErrorStateToProto(error_state_)); |
626 delegate_->OnError(error_state_); | 627 delegate_->OnError(error_state_); |
627 } | 628 } |
628 } // namespace cast_channel | 629 } // namespace cast_channel |
629 } // namespace api | 630 } // namespace api |
630 } // namespace extensions | 631 } // namespace extensions |
631 #undef VLOG_WITH_CONNECTION | 632 #undef VLOG_WITH_CONNECTION |
OLD | NEW |