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

Side by Side Diff: content/browser/tracing/power_tracing_agent.h

Issue 2390893002: [BattOr] Make BattOr able to return firmware version. (Closed)
Patch Set: fix compiling error Created 4 years, 1 month 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 | content/browser/tracing/power_tracing_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 CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_ 5 #ifndef CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_
6 #define CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_ 6 #define CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // base::trace_event::TracingAgent implementation. 40 // base::trace_event::TracingAgent implementation.
41 std::string GetTracingAgentName() override; 41 std::string GetTracingAgentName() override;
42 std::string GetTraceEventLabel() override; 42 std::string GetTraceEventLabel() override;
43 43
44 // BattOrAgent::Listener implementation. 44 // BattOrAgent::Listener implementation.
45 void OnStartTracingComplete(battor::BattOrError error) override; 45 void OnStartTracingComplete(battor::BattOrError error) override;
46 void OnStopTracingComplete(const std::string& trace, 46 void OnStopTracingComplete(const std::string& trace,
47 battor::BattOrError error) override; 47 battor::BattOrError error) override;
48 void OnRecordClockSyncMarkerComplete(battor::BattOrError error) override; 48 void OnRecordClockSyncMarkerComplete(battor::BattOrError error) override;
49 void OnGetFirmwareGitHashComplete(const std::string& version,
50 battor::BattOrError error) override;
49 51
50 private: 52 private:
51 // This allows constructor and destructor to be private and usable only 53 // This allows constructor and destructor to be private and usable only
52 // by the Singleton class. 54 // by the Singleton class.
53 friend struct base::DefaultSingletonTraits<PowerTracingAgent>; 55 friend struct base::DefaultSingletonTraits<PowerTracingAgent>;
54 56
55 PowerTracingAgent(); 57 PowerTracingAgent();
56 ~PowerTracingAgent() override; 58 ~PowerTracingAgent() override;
57 59
58 void FindBattOrOnFileThread(const StartAgentTracingCallback& callback); 60 void FindBattOrOnFileThread(const StartAgentTracingCallback& callback);
(...skipping 18 matching lines...) Expand all
77 std::string record_clock_sync_marker_sync_id_; 79 std::string record_clock_sync_marker_sync_id_;
78 base::TimeTicks record_clock_sync_marker_start_time_; 80 base::TimeTicks record_clock_sync_marker_start_time_;
79 RecordClockSyncMarkerCallback record_clock_sync_marker_callback_; 81 RecordClockSyncMarkerCallback record_clock_sync_marker_callback_;
80 82
81 DISALLOW_COPY_AND_ASSIGN(PowerTracingAgent); 83 DISALLOW_COPY_AND_ASSIGN(PowerTracingAgent);
82 }; 84 };
83 85
84 } // namespace content 86 } // namespace content
85 87
86 #endif // CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_ 88 #endif // CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/tracing/power_tracing_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698