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

Side by Side Diff: content/public/browser/tracing_controller.h

Issue 1002103004: NOT FOR REVIEW - Slow Reports Reference Implementation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: JSON serialization. Created 5 years, 7 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
« no previous file with comments | « content/public/browser/background_tracing_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateCompressedStringSink( 68 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateCompressedStringSink(
69 scoped_refptr<TraceDataEndpoint> endpoint); 69 scoped_refptr<TraceDataEndpoint> endpoint);
70 70
71 // Create a trace sink that may be supplied to DisableRecording or 71 // Create a trace sink that may be supplied to DisableRecording or
72 // CaptureMonitoringSnapshot to dump the trace data to a file. 72 // CaptureMonitoringSnapshot to dump the trace data to a file.
73 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateFileSink( 73 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateFileSink(
74 const base::FilePath& file_path, 74 const base::FilePath& file_path,
75 const base::Closure& callback); 75 const base::Closure& callback);
76 76
77 // Create an endpoint that may be supplied to any TraceDataSink to
78 // dump the trace data to a file.
79 CONTENT_EXPORT static scoped_refptr<TraceDataEndpoint> CreateFileEndpoint(
80 const base::FilePath& file_path,
81 const base::Closure& callback);
82
77 // Get a set of category groups. The category groups can change as 83 // Get a set of category groups. The category groups can change as
78 // new code paths are reached. 84 // new code paths are reached.
79 // 85 //
80 // Once all child processes have acked to the GetCategories request, 86 // Once all child processes have acked to the GetCategories request,
81 // GetCategoriesDoneCallback is called back with a set of category 87 // GetCategoriesDoneCallback is called back with a set of category
82 // groups. 88 // groups.
83 typedef base::Callback<void(const std::set<std::string>&)> 89 typedef base::Callback<void(const std::set<std::string>&)>
84 GetCategoriesDoneCallback; 90 GetCategoriesDoneCallback;
85 virtual bool GetCategories( 91 virtual bool GetCategories(
86 const GetCategoriesDoneCallback& callback) = 0; 92 const GetCategoriesDoneCallback& callback) = 0;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // watch event callback. 202 // watch event callback.
197 virtual bool CancelWatchEvent() = 0; 203 virtual bool CancelWatchEvent() = 0;
198 204
199 protected: 205 protected:
200 virtual ~TracingController() {} 206 virtual ~TracingController() {}
201 }; 207 };
202 208
203 } // namespace content 209 } // namespace content
204 210
205 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 211 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/public/browser/background_tracing_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698