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

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

Issue 1333873002: [tracing] Fix MemoryDumpManager to support startup tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re dsinclair #5 (nits, invert Initialize args) Created 5 years, 3 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_TRACING_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool CancelWatchEvent() override; 52 bool CancelWatchEvent() override;
53 bool IsRecording() const override; 53 bool IsRecording() const override;
54 54
55 void RegisterTracingUI(TracingUI* tracing_ui); 55 void RegisterTracingUI(TracingUI* tracing_ui);
56 void UnregisterTracingUI(TracingUI* tracing_ui); 56 void UnregisterTracingUI(TracingUI* tracing_ui);
57 57
58 // base::trace_event::MemoryDumpManagerDelegate implementation. 58 // base::trace_event::MemoryDumpManagerDelegate implementation.
59 void RequestGlobalMemoryDump( 59 void RequestGlobalMemoryDump(
60 const base::trace_event::MemoryDumpRequestArgs& args, 60 const base::trace_event::MemoryDumpRequestArgs& args,
61 const base::trace_event::MemoryDumpCallback& callback) override; 61 const base::trace_event::MemoryDumpCallback& callback) override;
62 bool IsCoordinatorProcess() const override;
63 uint64 GetTracingProcessId() const override; 62 uint64 GetTracingProcessId() const override;
64 63
65 class TraceMessageFilterObserver { 64 class TraceMessageFilterObserver {
66 public: 65 public:
67 virtual void OnTraceMessageFilterAdded(TraceMessageFilter* filter) = 0; 66 virtual void OnTraceMessageFilterAdded(TraceMessageFilter* filter) = 0;
68 virtual void OnTraceMessageFilterRemoved(TraceMessageFilter* filter) = 0; 67 virtual void OnTraceMessageFilterRemoved(TraceMessageFilter* filter) = 0;
69 }; 68 };
70 void AddTraceMessageFilterObserver(TraceMessageFilterObserver* observer); 69 void AddTraceMessageFilterObserver(TraceMessageFilterObserver* observer);
71 void RemoveTraceMessageFilterObserver(TraceMessageFilterObserver* observer); 70 void RemoveTraceMessageFilterObserver(TraceMessageFilterObserver* observer);
72 71
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 std::set<TracingUI*> tracing_uis_; 207 std::set<TracingUI*> tracing_uis_;
209 scoped_refptr<TraceDataSink> trace_data_sink_; 208 scoped_refptr<TraceDataSink> trace_data_sink_;
210 scoped_refptr<TraceDataSink> monitoring_data_sink_; 209 scoped_refptr<TraceDataSink> monitoring_data_sink_;
211 210
212 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); 211 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl);
213 }; 212 };
214 213
215 } // namespace content 214 } // namespace content
216 215
217 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 216 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/memory_tracing_browsertest.cc ('k') | content/browser/tracing/tracing_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698