OLD | NEW |
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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/single_thread_task_runner.h" |
14 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
15 #include "tools/battor_agent/battor_connection.h" | 16 #include "tools/battor_agent/battor_connection.h" |
16 #include "tools/battor_agent/battor_error.h" | 17 #include "tools/battor_agent/battor_error.h" |
17 | 18 |
18 namespace battor { | 19 namespace battor { |
19 | 20 |
20 // A BattOrAgent is a class used to asynchronously communicate with a BattOr for | 21 // A BattOrAgent is a class used to asynchronously communicate with a BattOr for |
21 // the purpose of collecting power samples. A BattOr is an external USB device | 22 // the purpose of collecting power samples. A BattOr is an external USB device |
22 // that's capable of recording accurate, high-frequency (2000Hz) power samples. | 23 // that's capable of recording accurate, high-frequency (2000Hz) power samples. |
23 // | 24 // |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 195 |
195 // The git hash of the BattOr firmware. | 196 // The git hash of the BattOr firmware. |
196 std::string firmware_git_hash_; | 197 std::string firmware_git_hash_; |
197 | 198 |
198 DISALLOW_COPY_AND_ASSIGN(BattOrAgent); | 199 DISALLOW_COPY_AND_ASSIGN(BattOrAgent); |
199 }; | 200 }; |
200 | 201 |
201 } // namespace battor | 202 } // namespace battor |
202 | 203 |
203 #endif // TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_ | 204 #endif // TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_ |
OLD | NEW |