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

Side by Side Diff: tools/battor_agent/battor_error.h

Issue 1991403002: [battor agent] Fix the init sequence so it retries inits instead of resets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comment 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 | « tools/battor_agent/battor_connection_impl.cc ('k') | tools/battor_agent/battor_error.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 TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ 5 #ifndef TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_
6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ 6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace battor { 10 namespace battor {
11 11
12 // A BattOrError is an error that occurs when communicating with a BattOr. 12 // A BattOrError is an error that occurs when communicating with a BattOr.
13 enum BattOrError { 13 enum BattOrError {
14 BATTOR_ERROR_NONE, 14 BATTOR_ERROR_NONE,
15 BATTOR_ERROR_CONNECTION_FAILED, 15 BATTOR_ERROR_CONNECTION_FAILED,
16 BATTOR_ERROR_TIMEOUT, 16 BATTOR_ERROR_TIMEOUT,
17 BATTOR_ERROR_SEND_ERROR, 17 BATTOR_ERROR_SEND_ERROR,
18 BATTOR_ERROR_RECEIVE_ERROR, 18 BATTOR_ERROR_RECEIVE_ERROR,
19 BATTOR_ERROR_UNEXPECTED_MESSAGE, 19 BATTOR_ERROR_UNEXPECTED_MESSAGE,
20 BATTOR_ERROR_TOO_MANY_INIT_RETRIES,
20 }; 21 };
21 22
22 std::string BattOrErrorToString(BattOrError error); 23 std::string BattOrErrorToString(BattOrError error);
23 24
24 } 25 }
25 26
26 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ 27 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_
OLDNEW
« no previous file with comments | « tools/battor_agent/battor_connection_impl.cc ('k') | tools/battor_agent/battor_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698