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

Unified Diff: content/public/browser/tracing_controller.h

Issue 24355002: Overhaul tracing_ui to use XHR and new tracing_controller (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix wrong usages of RefCountedString::TakeString Created 7 years, 1 month 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
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/tracing_controller.h
diff --git a/content/public/browser/tracing_controller.h b/content/public/browser/tracing_controller.h
index d4d54880d450819930a1c05b71a3ffbe6a31469c..d2aded98587bf70e03f921b360dd82edcd09be71 100644
--- a/content/public/browser/tracing_controller.h
+++ b/content/public/browser/tracing_controller.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
#define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
+#include <set>
+
#include "base/debug/trace_event.h"
#include "content/common/content_export.h"
@@ -25,6 +27,7 @@ class TracingController {
enum Options {
ENABLE_SYSTRACE = 1 << 0,
ENABLE_SAMPLING = 1 << 1,
+ RECORD_CONTINUOUSLY = 1 << 2, // For EnableRecording() only.
};
CONTENT_EXPORT static TracingController* GetInstance();
@@ -135,6 +138,13 @@ class TracingController {
const base::FilePath& result_file_path,
const TracingFileResultCallback& callback) = 0;
+ // Get the maximum across processes of trace buffer percent full state.
+ // When the TraceBufferPercentFull value is determined, the callback is
+ // called.
+ typedef base::Callback<void(float)> GetTraceBufferPercentFullCallback;
+ virtual bool GetTraceBufferPercentFull(
+ const GetTraceBufferPercentFullCallback& callback) = 0;
+
protected:
virtual ~TracingController() {}
};
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698