OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_ | |
6 #define BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_ | |
7 | |
8 namespace blimp { | |
9 | |
10 class ConnectionErrorObserver { | |
11 public: | |
12 virtual ~ConnectionErrorObserver() {} | |
13 | |
14 // Called when a blimp connection encounters an error. | |
15 // Negative |error| values correspond directly to net/ error codes. | |
16 // Positive values indicate the EndConnection.reason code specified | |
17 // by the peer during a "clean" disconnection. | |
18 virtual void OnConnectionError(int error) = 0; | |
19 }; | |
20 | |
21 } // namespace blimp | |
22 | |
23 #endif // BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_ | |
OLD | NEW |