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

Side by Side Diff: content/browser/devtools/protocol/tracing_handler.h

Issue 663373002: [DevTools] Add implementation for Tracing.start with optional parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/tracing_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
7 7
8 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h" 8 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h"
9 9
10 namespace content { 10 namespace content {
11 namespace devtools { 11 namespace devtools {
12 namespace tracing { 12 namespace tracing {
13 13
14 class TracingHandler { 14 class TracingHandler {
15 public: 15 public:
16 typedef DevToolsProtocolClient::Response Response; 16 typedef DevToolsProtocolClient::Response Response;
17 17
18 TracingHandler(); 18 TracingHandler();
19 virtual ~TracingHandler(); 19 virtual ~TracingHandler();
20 20
21 void SetClient(scoped_ptr<Client> client); 21 void SetClient(scoped_ptr<Client> client);
22 22
23 // TODO(dgozman): remove sync version after migration.
24 Response Start(const std::string& categories,
25 const std::string& options,
26 const double* buffer_usage_reporting_interval);
27 scoped_refptr<DevToolsProtocol::Response> Start( 23 scoped_refptr<DevToolsProtocol::Response> Start(
28 const std::string& categories, 24 const std::string& categories,
29 const std::string& options, 25 const std::string& options,
30 const double* buffer_usage_reporting_interval, 26 const double* buffer_usage_reporting_interval,
31 scoped_refptr<DevToolsProtocol::Command> command); 27 scoped_refptr<DevToolsProtocol::Command> command);
28 scoped_refptr<DevToolsProtocol::Response> Start(
29 const std::string* categories,
30 const std::string* options,
31 const double* buffer_usage_reporting_interval,
32 scoped_refptr<DevToolsProtocol::Command> command);
32 33
33 // TODO(dgozman): remove sync version after migration.
34 Response End();
35 scoped_refptr<DevToolsProtocol::Response> End( 34 scoped_refptr<DevToolsProtocol::Response> End(
36 scoped_refptr<DevToolsProtocol::Command> command); 35 scoped_refptr<DevToolsProtocol::Command> command);
37 36
38 scoped_refptr<DevToolsProtocol::Response> GetCategories( 37 scoped_refptr<DevToolsProtocol::Response> GetCategories(
39 scoped_refptr<DevToolsProtocol::Command> command); 38 scoped_refptr<DevToolsProtocol::Command> command);
40 39
41 private: 40 private:
42 scoped_ptr<Client> client_; 41 scoped_ptr<Client> client_;
43 42
44 DISALLOW_COPY_AND_ASSIGN(TracingHandler); 43 DISALLOW_COPY_AND_ASSIGN(TracingHandler);
45 }; 44 };
46 45
47 } // namespace tracing 46 } // namespace tracing
48 } // namespace devtools 47 } // namespace devtools
49 } // namespace content 48 } // namespace content
50 49
51 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 50 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698