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

Unified Diff: content/browser/tracing/tracing_controller_impl.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/trace_message_filter.cc ('k') | content/browser/tracing/tracing_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10262929887658a21162eb4b55d20bf898f795e3..cb1c4852f9f5e9d9292a6d9181232009eaade8f3 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -44,6 +44,8 @@ class TracingControllerImpl : public TracingController {
virtual void CaptureMonitoringSnapshot(
const base::FilePath& result_file_path,
const TracingFileResultCallback& callback) OVERRIDE;
+ virtual bool GetTraceBufferPercentFull(
+ const GetTraceBufferPercentFullCallback& callback) OVERRIDE;
private:
typedef std::set<scoped_refptr<TraceMessageFilter> > FilterMap;
@@ -72,6 +74,10 @@ class TracingControllerImpl : public TracingController {
pending_capture_monitoring_snapshot_ack_count_ == 0;
}
+ bool can_get_trace_buffer_percent_full() const {
+ return pending_trace_buffer_percent_full_callback_.is_null();
+ }
+
// Methods for use by TraceMessageFilter.
void AddFilter(TraceMessageFilter* filter);
void RemoveFilter(TraceMessageFilter* filter);
@@ -94,16 +100,26 @@ class TracingControllerImpl : public TracingController {
const std::vector<std::string>& known_category_groups);
void OnCaptureMonitoringSnapshotAcked();
+ void OnTraceNotification(int notification);
+ void OnTraceBufferPercentFullReply(float percent_full);
+
FilterMap filters_;
// Pending acks for DisableRecording.
int pending_disable_recording_ack_count_;
// Pending acks for CaptureMonitoringSnapshot.
int pending_capture_monitoring_snapshot_ack_count_;
+ // Pending acks for GetTraceBufferPercentFull.
+ int pending_trace_buffer_percent_full_ack_count_;
+ float maximum_trace_buffer_percent_full_;
+
bool is_recording_;
bool is_monitoring_;
+
GetCategoriesDoneCallback pending_get_categories_done_callback_;
TracingFileResultCallback pending_disable_recording_done_callback_;
TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_;
+ GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_;
+
std::set<std::string> known_category_groups_;
base::debug::CategoryFilter category_filter_;
scoped_ptr<ResultFile> result_file_;
« no previous file with comments | « content/browser/tracing/trace_message_filter.cc ('k') | content/browser/tracing/tracing_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698