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

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

Issue 1148633007: Hooked the trace event argument whitelist up to the background_trace_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 protected: 58 protected:
59 friend class base::RefCountedThreadSafe<TraceDataEndpoint>; 59 friend class base::RefCountedThreadSafe<TraceDataEndpoint>;
60 virtual ~TraceDataEndpoint() {} 60 virtual ~TraceDataEndpoint() {}
61 }; 61 };
62 62
63 // Create a trace sink that may be supplied to DisableRecording or 63 // Create a trace sink that may be supplied to DisableRecording or
64 // CaptureMonitoringSnapshot to capture the trace data as a string. 64 // CaptureMonitoringSnapshot to capture the trace data as a string.
65 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateStringSink( 65 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateStringSink(
66 const base::Callback<void(base::RefCountedString*)>& callback); 66 const base::Callback<void(base::RefCountedString*)>& callback);
67 67
68 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateStringSink(
69 scoped_refptr<TraceDataEndpoint> endpoint);
70
68 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateCompressedStringSink( 71 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateCompressedStringSink(
69 scoped_refptr<TraceDataEndpoint> endpoint); 72 scoped_refptr<TraceDataEndpoint> endpoint);
70 73
71 // Create a trace sink that may be supplied to DisableRecording or 74 // Create a trace sink that may be supplied to DisableRecording or
72 // CaptureMonitoringSnapshot to dump the trace data to a file. 75 // CaptureMonitoringSnapshot to dump the trace data to a file.
73 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateFileSink( 76 CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateFileSink(
74 const base::FilePath& file_path, 77 const base::FilePath& file_path,
75 const base::Closure& callback); 78 const base::Closure& callback);
76 79
77 // Create an endpoint that may be supplied to any TraceDataSink to 80 // Create an endpoint that may be supplied to any TraceDataSink to
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // watch event callback. 205 // watch event callback.
203 virtual bool CancelWatchEvent() = 0; 206 virtual bool CancelWatchEvent() = 0;
204 207
205 protected: 208 protected:
206 virtual ~TracingController() {} 209 virtual ~TracingController() {}
207 }; 210 };
208 211
209 } // namespace content 212 } // namespace content
210 213
211 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 214 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698