| 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 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ |
| 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ | 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "extensions/common/api/cast_channel.h" | 24 #include "extensions/common/api/cast_channel.h" |
| 25 #include "extensions/common/api/cast_channel/logging.pb.h" | 25 #include "extensions/common/api/cast_channel/logging.pb.h" |
| 26 #include "net/base/completion_callback.h" | 26 #include "net/base/completion_callback.h" |
| 27 #include "net/base/io_buffer.h" | 27 #include "net/base/io_buffer.h" |
| 28 #include "net/base/ip_endpoint.h" | 28 #include "net/base/ip_endpoint.h" |
| 29 #include "net/log/net_log.h" | 29 #include "net/log/net_log.h" |
| 30 | 30 |
| 31 namespace net { | 31 namespace net { |
| 32 class AddressList; | 32 class AddressList; |
| 33 class CertVerifier; | 33 class CertVerifier; |
| 34 class CTPolicyEnforcer; |
| 35 class CTVerifier; |
| 34 class SSLClientSocket; | 36 class SSLClientSocket; |
| 35 class StreamSocket; | 37 class StreamSocket; |
| 36 class TCPClientSocket; | 38 class TCPClientSocket; |
| 37 class TransportSecurityState; | 39 class TransportSecurityState; |
| 38 class X509Certificate; | 40 class X509Certificate; |
| 39 } | 41 } |
| 40 | 42 |
| 41 namespace extensions { | 43 namespace extensions { |
| 42 namespace api { | 44 namespace api { |
| 43 namespace cast_channel { | 45 namespace cast_channel { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 bool keep_alive_; | 301 bool keep_alive_; |
| 300 | 302 |
| 301 // Shared logging object, used to log CastSocket events for diagnostics. | 303 // Shared logging object, used to log CastSocket events for diagnostics. |
| 302 scoped_refptr<Logger> logger_; | 304 scoped_refptr<Logger> logger_; |
| 303 | 305 |
| 304 // CertVerifier is owned by us but should be deleted AFTER SSLClientSocket | 306 // CertVerifier is owned by us but should be deleted AFTER SSLClientSocket |
| 305 // since in some cases the destructor of SSLClientSocket may call a method | 307 // since in some cases the destructor of SSLClientSocket may call a method |
| 306 // to cancel a cert verification request. | 308 // to cancel a cert verification request. |
| 307 std::unique_ptr<net::CertVerifier> cert_verifier_; | 309 std::unique_ptr<net::CertVerifier> cert_verifier_; |
| 308 std::unique_ptr<net::TransportSecurityState> transport_security_state_; | 310 std::unique_ptr<net::TransportSecurityState> transport_security_state_; |
| 311 std::unique_ptr<net::CTVerifier> cert_transparency_verifier_; |
| 312 std::unique_ptr<net::CTPolicyEnforcer> ct_policy_enforcer_; |
| 309 | 313 |
| 310 // Owned ptr to the underlying TCP socket. | 314 // Owned ptr to the underlying TCP socket. |
| 311 std::unique_ptr<net::TCPClientSocket> tcp_socket_; | 315 std::unique_ptr<net::TCPClientSocket> tcp_socket_; |
| 312 | 316 |
| 313 // Owned ptr to the underlying SSL socket. | 317 // Owned ptr to the underlying SSL socket. |
| 314 std::unique_ptr<net::SSLClientSocket> socket_; | 318 std::unique_ptr<net::SSLClientSocket> socket_; |
| 315 | 319 |
| 316 // Certificate of the peer. This field may be empty if the peer | 320 // Certificate of the peer. This field may be empty if the peer |
| 317 // certificate is not yet fetched. | 321 // certificate is not yet fetched. |
| 318 scoped_refptr<net::X509Certificate> peer_cert_; | 322 scoped_refptr<net::X509Certificate> peer_cert_; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // information. | 380 // information. |
| 377 AuthTransportDelegate* auth_delegate_; | 381 AuthTransportDelegate* auth_delegate_; |
| 378 | 382 |
| 379 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl); | 383 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl); |
| 380 }; | 384 }; |
| 381 } // namespace cast_channel | 385 } // namespace cast_channel |
| 382 } // namespace api | 386 } // namespace api |
| 383 } // namespace extensions | 387 } // namespace extensions |
| 384 | 388 |
| 385 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ | 389 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ |
| OLD | NEW |