void OnClientDetached();
- private:
- void BeginReadingRecordingResult(const base::FilePath& path);
- void ReadRecordingResult(const scoped_refptr<base::RefCountedString>& result);
void OnTraceDataCollected(const std::string& trace_fragment);
+ void OnTraceComplete();
+
+ private:
void OnRecordingEnabled(scoped_refptr<DevToolsProtocol::Command> command);
void OnBufferUsage(float usage);
scoped_refptr<DevToolsProtocol::Response> OnGetCategories(
scoped_refptr<DevToolsProtocol::Command> command);
- void OnTracingStarted(
- scoped_refptr<DevToolsProtocol::Notification> notification);
-
- void OnTracingStopped(
- scoped_refptr<DevToolsProtocol::Notification> notification);
-
void OnCategoriesReceived(scoped_refptr<DevToolsProtocol::Command> command,
const std::set<std::string>& category_set);
void SetupTimer(double usage_reporting_interval);
- void DisableRecording(
- const TracingController::TracingFileResultCallback& callback =
- TracingController::TracingFileResultCallback());
+ void DisableRecording(bool abort);
- base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_;
scoped_ptr<base::Timer> buffer_usage_poll_timer_;
Target target_;
bool is_recording_;
static const double kDefaultReportingInterval;
static const double kMinimumReportingInterval;
+ base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler);
};