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" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void OnStopTracingComplete(const std::string& trace, | 44 virtual void OnStopTracingComplete(const std::string& trace, |
45 BattOrError error) = 0; | 45 BattOrError error) = 0; |
46 virtual void OnRecordClockSyncMarkerComplete(BattOrError error) = 0; | 46 virtual void OnRecordClockSyncMarkerComplete(BattOrError error) = 0; |
47 virtual void OnGetFirmwareGitHashComplete(const std::string& version, | 47 virtual void OnGetFirmwareGitHashComplete(const std::string& version, |
48 BattOrError error) = 0; | 48 BattOrError error) = 0; |
49 }; | 49 }; |
50 | 50 |
51 BattOrAgent( | 51 BattOrAgent( |
52 const std::string& path, | 52 const std::string& path, |
53 Listener* listener, | 53 Listener* listener, |
54 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner, | |
55 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner); | 54 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner); |
56 virtual ~BattOrAgent(); | 55 virtual ~BattOrAgent(); |
57 | 56 |
58 void StartTracing(); | 57 void StartTracing(); |
59 void StopTracing(); | 58 void StopTracing(); |
60 void RecordClockSyncMarker(const std::string& marker); | 59 void RecordClockSyncMarker(const std::string& marker); |
61 void GetFirmwareGitHash(); | 60 void GetFirmwareGitHash(); |
62 | 61 |
63 // Returns whether the BattOr is able to record clock sync markers in its own | 62 // Returns whether the BattOr is able to record clock sync markers in its own |
64 // trace log. | 63 // trace log. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 192 |
194 // The git hash of the BattOr firmware. | 193 // The git hash of the BattOr firmware. |
195 std::string firmware_git_hash_; | 194 std::string firmware_git_hash_; |
196 | 195 |
197 DISALLOW_COPY_AND_ASSIGN(BattOrAgent); | 196 DISALLOW_COPY_AND_ASSIGN(BattOrAgent); |
198 }; | 197 }; |
199 | 198 |
200 } // namespace battor | 199 } // namespace battor |
201 | 200 |
202 #endif // TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_ | 201 #endif // TOOLS_BATTOR_AGENT_BATTOR_AGENT_H_ |
OLD | NEW |