OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_TRACING_DOMAIN_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_TRACING_DOMAIN_HANDLER_H_ |
| 7 |
| 8 #include "content/browser/devtools/devtools_protocol_handler.h" |
| 9 |
| 10 namespace content { |
| 11 namespace devtools { |
| 12 |
| 13 class TracingDomainHandler { |
| 14 public: |
| 15 typedef DevToolsProtocolFrontend::Response Response; |
| 16 |
| 17 TracingDomainHandler(); |
| 18 virtual ~TracingDomainHandler(); |
| 19 |
| 20 void OnClientDetached(); |
| 21 void SetRenderViewHost(RenderViewHostImpl* host); |
| 22 void SetFrontend(scoped_ptr<TracingDomainFrontend> frontend); |
| 23 |
| 24 Response Start(const std::string& categories, |
| 25 const std::string& options, |
| 26 const double* buffer_usage_reporting_interval); |
| 27 |
| 28 Response End(); |
| 29 Response GetCategories(std::vector<std::string>* categories); |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(TracingDomainHandler); |
| 33 }; |
| 34 |
| 35 } // namespace devtools |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_BROWSER_DEVTOOLS_TRACING_DOMAIN_HANDLER_H_ |
OLD | NEW |