| Index: content/browser/devtools/devtools_tracing_handler.h
|
| diff --git a/content/browser/devtools/devtools_tracing_handler.h b/content/browser/devtools/devtools_tracing_handler.h
|
| index 43cd6150edaa11e09827c7b362ad8f3a3034f2cd..8b694a10ebc98903b2883bed68b11eaa27af1126 100644
|
| --- a/content/browser/devtools/devtools_tracing_handler.h
|
| +++ b/content/browser/devtools/devtools_tracing_handler.h
|
| @@ -5,35 +5,33 @@
|
| #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
|
| #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
|
|
|
| -#include "base/debug/trace_event.h"
|
| #include "content/browser/devtools/devtools_protocol.h"
|
| -#include "content/public/browser/trace_subscriber.h"
|
| +
|
| +namespace base {
|
| +class FilePath;
|
| +}
|
|
|
| namespace content {
|
|
|
| // This class bridges DevTools remote debugging server with the trace
|
| // infrastructure.
|
| -class DevToolsTracingHandler
|
| - : public TraceSubscriber,
|
| - public DevToolsProtocol::Handler {
|
| +class DevToolsTracingHandler : public DevToolsProtocol::Handler {
|
| public:
|
| DevToolsTracingHandler();
|
| virtual ~DevToolsTracingHandler();
|
|
|
| - // TraceSubscriber:
|
| - virtual void OnEndTracingComplete() OVERRIDE;;
|
| - virtual void OnTraceDataCollected(
|
| - const scoped_refptr<base::RefCountedString>& trace_fragment) OVERRIDE;
|
| -
|
| private:
|
| + void BeginReadingRecordingResult(const base::FilePath& path);
|
| + void ReadRecordingResult(const base::FilePath& path);
|
| + void OnTraceBufferPercentFullResult(float percent_full);
|
| +
|
| scoped_refptr<DevToolsProtocol::Response> OnStart(
|
| scoped_refptr<DevToolsProtocol::Command> command);
|
| + scoped_refptr<DevToolsProtocol::Response> OnGetTraceBufferPercentFull(
|
| + scoped_refptr<DevToolsProtocol::Command> command);
|
| scoped_refptr<DevToolsProtocol::Response> OnEnd(
|
| scoped_refptr<DevToolsProtocol::Command> command);
|
|
|
| - base::debug::TraceLog::Options TraceOptionsFromString(
|
| - const std::string& options);
|
| -
|
| bool is_running_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler);
|
|
|