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 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" | 5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "build/build_config.h" |
11 #include "crypto/secure_util.h" | 14 #include "crypto/secure_util.h" |
12 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
13 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
14 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
15 #include "net/cert/cert_status_flags.h" | 18 #include "net/cert/cert_status_flags.h" |
16 #include "net/cert/cert_verifier.h" | 19 #include "net/cert/cert_verifier.h" |
17 #include "net/cert/cert_verify_result.h" | 20 #include "net/cert/cert_verify_result.h" |
18 #include "net/cert/x509_certificate.h" | 21 #include "net/cert/x509_certificate.h" |
19 #include "net/http/transport_security_state.h" | 22 #include "net/http/transport_security_state.h" |
20 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 make_scoped_ptr(new P2PStreamSocketAdapter(socket_.Pass()))); | 432 make_scoped_ptr(new P2PStreamSocketAdapter(socket_.Pass()))); |
430 } | 433 } |
431 } | 434 } |
432 | 435 |
433 void SslHmacChannelAuthenticator::NotifyError(int error) { | 436 void SslHmacChannelAuthenticator::NotifyError(int error) { |
434 base::ResetAndReturn(&done_callback_).Run(error, nullptr); | 437 base::ResetAndReturn(&done_callback_).Run(error, nullptr); |
435 } | 438 } |
436 | 439 |
437 } // namespace protocol | 440 } // namespace protocol |
438 } // namespace remoting | 441 } // namespace remoting |
OLD | NEW |