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

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

Issue 1614063005: Adds a callback to TracingAgent::StartAgentTracing() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class PowerTracingAgent : public base::trace_event::TracingAgent { 22 class PowerTracingAgent : public base::trace_event::TracingAgent {
23 public: 23 public:
24 // Retrieve the singleton instance. 24 // Retrieve the singleton instance.
25 static PowerTracingAgent* GetInstance(); 25 static PowerTracingAgent* GetInstance();
26 26
27 // base::trace_event::TracingAgent implementation. 27 // base::trace_event::TracingAgent implementation.
28 std::string GetTracingAgentName() override; 28 std::string GetTracingAgentName() override;
29 std::string GetTraceEventLabel() override; 29 std::string GetTraceEventLabel() override;
30 30
31 bool StartAgentTracing( 31 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config,
32 const base::trace_event::TraceConfig& trace_config) override; 32 const StartAgentTracingCallback& callback) override;
33 void StopAgentTracing(const StopAgentTracingCallback& callback) override; 33 void StopAgentTracing(const StopAgentTracingCallback& callback) override;
34 34
35 bool SupportsExplicitClockSync() override; 35 bool SupportsExplicitClockSync() override;
36 void RecordClockSyncMarker( 36 void RecordClockSyncMarker(
37 int sync_id, 37 int sync_id,
38 const RecordClockSyncMarkerCallback& callback) override; 38 const RecordClockSyncMarkerCallback& callback) override;
39 39
40 private: 40 private:
41 // This allows constructor and destructor to be private and usable only 41 // This allows constructor and destructor to be private and usable only
42 // by the Singleton class. 42 // by the Singleton class.
(...skipping 14 matching lines...) Expand all
57 57
58 base::Thread thread_; 58 base::Thread thread_;
59 scoped_ptr<BattorPowerTraceProvider> battor_trace_provider_; 59 scoped_ptr<BattorPowerTraceProvider> battor_trace_provider_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(PowerTracingAgent); 61 DISALLOW_COPY_AND_ASSIGN(PowerTracingAgent);
62 }; 62 };
63 63
64 } // namespace content 64 } // namespace content
65 65
66 #endif // CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_ 66 #endif // CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698