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 "net/quic/core/quic_connection.h" | 5 #include "net/quic/core/quic_connection.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <memory> | 8 #include <memory> |
9 #include <ostream> | 9 #include <ostream> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/stringprintf.h" | |
16 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
17 #include "net/quic/core/congestion_control/loss_detection_interface.h" | 16 #include "net/quic/core/congestion_control/loss_detection_interface.h" |
18 #include "net/quic/core/congestion_control/send_algorithm_interface.h" | 17 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
19 #include "net/quic/core/crypto/null_encrypter.h" | 18 #include "net/quic/core/crypto/null_encrypter.h" |
20 #include "net/quic/core/crypto/quic_decrypter.h" | 19 #include "net/quic/core/crypto/quic_decrypter.h" |
21 #include "net/quic/core/crypto/quic_encrypter.h" | 20 #include "net/quic/core/crypto/quic_encrypter.h" |
22 #include "net/quic/core/quic_flags.h" | 21 #include "net/quic/core/quic_flags.h" |
23 #include "net/quic/core/quic_packets.h" | 22 #include "net/quic/core/quic_packets.h" |
24 #include "net/quic/core/quic_simple_buffer_allocator.h" | 23 #include "net/quic/core/quic_simple_buffer_allocator.h" |
25 #include "net/quic/core/quic_utils.h" | 24 #include "net/quic/core/quic_utils.h" |
(...skipping 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5120 error_details, ConnectionCloseSource::FROM_PEER)); | 5119 error_details, ConnectionCloseSource::FROM_PEER)); |
5121 connection_.set_perspective(Perspective::IS_CLIENT); | 5120 connection_.set_perspective(Perspective::IS_CLIENT); |
5122 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, | 5121 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, |
5123 error_details, | 5122 error_details, |
5124 ConnectionCloseBehavior::SILENT_CLOSE); | 5123 ConnectionCloseBehavior::SILENT_CLOSE); |
5125 } | 5124 } |
5126 | 5125 |
5127 } // namespace | 5126 } // namespace |
5128 } // namespace test | 5127 } // namespace test |
5129 } // namespace net | 5128 } // namespace net |
OLD | NEW |