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

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

Issue 2563033002: Make the BattOr agent retry start tracing when we fail to read an ack (Closed)
Patch Set: Created 4 years 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 | « no previous file | tools/battor_agent/battor_agent.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_AGENT_H_ 5 #ifndef TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_
6 #define TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_ 6 #define TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // The actual data samples recorded. 176 // The actual data samples recorded.
177 std::vector<RawBattOrSample> samples_; 177 std::vector<RawBattOrSample> samples_;
178 178
179 // The expected sequence number of the next frame. We use this to ensure that 179 // The expected sequence number of the next frame. We use this to ensure that
180 // we receive frames in order. 180 // we receive frames in order.
181 uint32_t next_sequence_number_; 181 uint32_t next_sequence_number_;
182 182
183 // The number of times we've attempted to init the BattOr. 183 // The number of times we've attempted to init the BattOr.
184 uint8_t num_init_attempts_; 184 uint8_t num_init_attempts_;
185 185
186 // The number of times we've attempted the BattOr StartTracing command.
187 uint8_t num_start_tracing_attempts_;
188
186 // The number of times that we've attempted to read the last message. 189 // The number of times that we've attempted to read the last message.
187 uint8_t num_read_attempts_; 190 uint8_t num_read_attempts_;
188 191
189 // The timeout that's run when an action times out. 192 // The timeout that's run when an action times out.
190 base::CancelableClosure timeout_callback_; 193 base::CancelableClosure timeout_callback_;
191 194
192 // The git hash of the BattOr firmware. 195 // The git hash of the BattOr firmware.
193 std::string firmware_git_hash_; 196 std::string firmware_git_hash_;
194 197
195 DISALLOW_COPY_AND_ASSIGN(BattOrAgent); 198 DISALLOW_COPY_AND_ASSIGN(BattOrAgent);
196 }; 199 };
197 200
198 } // namespace battor 201 } // namespace battor
199 202
200 #endif // TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_ 203 #endif // TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | tools/battor_agent/battor_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698