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

Unified 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: Route EndConnection to OnConnectionError notifications Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: blimp/net/connection_error_observer.h
diff --git a/blimp/net/connection_error_observer.h b/blimp/net/connection_error_observer.h
index da17db6f168e66776f899bd1024f658fe6c45f99..b00ea7886d44a425c121d0e5ba7d494c160bf0b3 100644
--- a/blimp/net/connection_error_observer.h
+++ b/blimp/net/connection_error_observer.h
@@ -12,6 +12,9 @@ class ConnectionErrorObserver {
virtual ~ConnectionErrorObserver() {}
// Called when a blimp connection encounters an error.
+ // Negative |error| values correspond directly to net/ error codes.
+ // Positive values indicate the EndConnection.reason code specified
+ // by the peer during a "clean" disconnection.
virtual void OnConnectionError(int error) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698