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

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

Issue 1526883005: [Tracing Clock Sync] Implement clock sync in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 5 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
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/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "base/trace_event/tracing_agent.h" 10 #include "base/trace_event/tracing_agent.h"
(...skipping 30 matching lines...) Expand all
41 // by the Singleton class. 41 // by the Singleton class.
42 friend struct base::DefaultSingletonTraits<PowerTracingAgent>; 42 friend struct base::DefaultSingletonTraits<PowerTracingAgent>;
43 43
44 // Constructor. 44 // Constructor.
45 PowerTracingAgent(); 45 PowerTracingAgent();
46 ~PowerTracingAgent() override; 46 ~PowerTracingAgent() override;
47 47
48 void OnStopTracingDone(const StopAgentTracingCallback& callback, 48 void OnStopTracingDone(const StopAgentTracingCallback& callback,
49 const scoped_refptr<base::RefCountedString>& result); 49 const scoped_refptr<base::RefCountedString>& result);
50 50
51 void TraceOnThread();
51 void FlushOnThread(const StopAgentTracingCallback& callback); 52 void FlushOnThread(const StopAgentTracingCallback& callback);
53 void RecordClockSyncMarkerOnThread(
54 int sync_id,
55 const RecordClockSyncMarkerCallback& callback);
52 56
57 base::Thread thread_;
53 scoped_ptr<BattorPowerTraceProvider> battor_trace_provider_; 58 scoped_ptr<BattorPowerTraceProvider> battor_trace_provider_;
54 bool is_tracing_;
55 59
56 DISALLOW_COPY_AND_ASSIGN(PowerTracingAgent); 60 DISALLOW_COPY_AND_ASSIGN(PowerTracingAgent);
57 }; 61 };
58 62
59 } // namespace content 63 } // namespace content
60 64
61 #endif // CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_ 65 #endif // CONTENT_BROWSER_TRACING_POWER_TRACING_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698