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

Side by Side Diff: blimp/net/connection_error_observer.h

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android to use GetVersionNumber() Created 4 years, 6 months 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 | « blimp/net/blimp_connection_unittest.cc ('k') | blimp/net/engine_authentication_handler.cc » ('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 2015 The Chromium Authors. All rights reserved. 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 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 BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_ 5 #ifndef BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_
6 #define BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_ 6 #define BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_
7 7
8 namespace blimp { 8 namespace blimp {
9 9
10 class ConnectionErrorObserver { 10 class ConnectionErrorObserver {
11 public: 11 public:
12 virtual ~ConnectionErrorObserver() {} 12 virtual ~ConnectionErrorObserver() {}
13 13
14 // Called when a blimp connection encounters an error. 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.
15 virtual void OnConnectionError(int error) = 0; 18 virtual void OnConnectionError(int error) = 0;
16 }; 19 };
17 20
18 } // namespace blimp 21 } // namespace blimp
19 22
20 #endif // BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_ 23 #endif // BLIMP_NET_CONNECTION_ERROR_OBSERVER_H_
OLDNEW
« no previous file with comments | « blimp/net/blimp_connection_unittest.cc ('k') | blimp/net/engine_authentication_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698