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

Unified Diff: content/browser/tracing/tracing_controller_impl.h

Issue 874543003: Add support for TraceEvent before the native library is loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/tracing/tracing_controller_impl.h
diff --git a/content/browser/tracing/tracing_controller_impl.h b/content/browser/tracing/tracing_controller_impl.h
index 330b9287466a8f7b597d1e15c2199a0d89c3ddc6..dc442c1bdb56cf80ed3989656639ea05d7effe27 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -9,12 +9,18 @@
#include <string>
#include <vector>
+#include "base/callback.h"
+#include "base/files/file_path.h"
#include "base/lazy_instance.h"
#include "content/public/browser/tracing_controller.h"
namespace base {
class RefCountedString;
class RefCountedMemory;
+
+namespace debug {
+class TraceLog;
dsinclair 2015/02/09 21:11:20 What is this for?
Benoit L 2015/02/10 15:31:35 Done.
+}
}
namespace content {
@@ -24,6 +30,9 @@ class TracingUI;
class TracingControllerImpl : public TracingController {
public:
+ typedef base::Callback<
+ void (base::debug::TraceLog*)> DisableRecordingCallback;
+
static TracingControllerImpl* GetInstance();
// TracingController implementation.
@@ -53,6 +62,8 @@ class TracingControllerImpl : public TracingController {
void RegisterTracingUI(TracingUI* tracing_ui);
void UnregisterTracingUI(TracingUI* tracing_ui);
+ void SetDisableRecordingCallback(const DisableRecordingCallback& callback);
+
private:
typedef std::set<scoped_refptr<TraceMessageFilter> > TraceMessageFilterSet;
@@ -171,6 +182,8 @@ class TracingControllerImpl : public TracingController {
std::set<TracingUI*> tracing_uis_;
scoped_refptr<TraceDataSink> trace_data_sink_;
scoped_refptr<TraceDataSink> monitoring_data_sink_;
+ DisableRecordingCallback disable_recording_callback_;
+
DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698