Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: net/quic/core/quic_connection_close_delegate_interface.h

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_connection_stats.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_connection_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698