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

Unified Diff: blimp/net/helium/helium_errors.h

Issue 2385913002: Define canonical enum for "HeliumResult" status values. (Closed)
Patch Set: Created 4 years, 3 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/helium/helium_errors.h
diff --git a/blimp/net/helium/helium_errors.h b/blimp/net/helium/helium_errors.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2c97e175b49493ae948408115daf7888b7b8b02
--- /dev/null
+++ b/blimp/net/helium/helium_errors.h
@@ -0,0 +1,15 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards, it's included
+// inside a macro to generate enum values.
+
+// This file contains the list of Helium error codes.
+
+// A generic failure occurred.
+HELIUM_ERROR(FAILED, 1)
Garrett Casto 2016/10/03 18:40:47 Nit: OK, FAILED, and CONNECTION_LOST were spelled
Kevin M 2016/10/03 22:32:19 OK, I'll add those. This CL is primarily about est
+
+// The operation could not be performed because the connection to the peer was
+// lost.
+HELIUM_ERROR(CONNECTION_LOST, 2)
scf 2016/10/03 17:57:44 move the comment into a string? and use this for t
Kevin M 2016/10/03 22:32:19 That could be nice for logging, but I am a little

Powered by Google App Engine
This is Rietveld 408576698