OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 NET_QUIC_CORE_QUIC_CONNECTION_CLOSE_DELEGATE_INTERFACE_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_CONNECTION_CLOSE_DELEGATE_INTERFACE_H_ |
6 #define NET_QUIC_CORE_QUIC_CONNECTION_CLOSE_DELEGATE_INTERFACE_H_ | 6 #define NET_QUIC_CORE_QUIC_CONNECTION_CLOSE_DELEGATE_INTERFACE_H_ |
7 | 7 |
8 #include "net/quic/core/quic_error_codes.h" | 8 #include "net/quic/core/quic_error_codes.h" |
9 #include "net/quic/core/quic_types.h" | 9 #include "net/quic/core/quic_types.h" |
| 10 #include "net/quic/platform/api/quic_export.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 // Pure virtual class to close connection on unrecoverable errors. | 14 // Pure virtual class to close connection on unrecoverable errors. |
14 class NET_EXPORT_PRIVATE QuicConnectionCloseDelegateInterface { | 15 class QUIC_EXPORT_PRIVATE QuicConnectionCloseDelegateInterface { |
15 public: | 16 public: |
16 virtual ~QuicConnectionCloseDelegateInterface() {} | 17 virtual ~QuicConnectionCloseDelegateInterface() {} |
17 | 18 |
18 // Called when an unrecoverable error is encountered. | 19 // Called when an unrecoverable error is encountered. |
19 virtual void OnUnrecoverableError(QuicErrorCode error, | 20 virtual void OnUnrecoverableError(QuicErrorCode error, |
20 const std::string& error_details, | 21 const std::string& error_details, |
21 ConnectionCloseSource source) = 0; | 22 ConnectionCloseSource source) = 0; |
22 }; | 23 }; |
23 | 24 |
24 } // namespace net | 25 } // namespace net |
25 | 26 |
26 #endif // NET_QUIC_CORE_QUIC_CONNECTION_CLOSE_DELEGATE_INTERFACE_H_ | 27 #endif // NET_QUIC_CORE_QUIC_CONNECTION_CLOSE_DELEGATE_INTERFACE_H_ |
OLD | NEW |