Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / browser / devtools / devtools_tracing_handler.h
index 20ebca8..9727466 100644 (file)
@@ -30,10 +30,10 @@ class DevToolsTracingHandler : public DevToolsProtocol::Handler {
 
   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);
 
@@ -45,12 +45,6 @@ class DevToolsTracingHandler : public DevToolsProtocol::Handler {
   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);
 
@@ -58,11 +52,8 @@ class DevToolsTracingHandler : public DevToolsProtocol::Handler {
 
   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_;
@@ -71,6 +62,8 @@ class DevToolsTracingHandler : public DevToolsProtocol::Handler {
   static const double kDefaultReportingInterval;
   static const double kMinimumReportingInterval;
 
+  base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_;
+
   DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler);
 };