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

Side by Side Diff: content/browser/devtools/devtools_tracing_handler.h

Issue 99543002: Make it possible to configure synthetic delays through Devtools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DEVTOOLS_TRACING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
7 7
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "content/browser/devtools/devtools_protocol.h" 9 #include "content/browser/devtools/devtools_protocol.h"
10 #include "content/public/browser/trace_subscriber.h" 10 #include "content/public/browser/trace_subscriber.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // This class bridges DevTools remote debugging server with the trace 14 // This class bridges DevTools remote debugging server with the trace
15 // infrastructure. 15 // infrastructure.
16 class DevToolsTracingHandler 16 class DevToolsTracingHandler
17 : public TraceSubscriber, 17 : public TraceSubscriber,
18 public DevToolsProtocol::Handler { 18 public DevToolsProtocol::Handler {
19 public: 19 public:
20 DevToolsTracingHandler(); 20 DevToolsTracingHandler();
21 virtual ~DevToolsTracingHandler(); 21 virtual ~DevToolsTracingHandler();
22 22
23 // TraceSubscriber: 23 // TraceSubscriber:
24 virtual void OnEndTracingComplete() OVERRIDE;; 24 virtual void OnEndTracingComplete() OVERRIDE;;
25 virtual void OnTraceDataCollected( 25 virtual void OnTraceDataCollected(
26 const scoped_refptr<base::RefCountedString>& trace_fragment) OVERRIDE; 26 const scoped_refptr<base::RefCountedString>& trace_fragment) OVERRIDE;
27 27
28 private: 28 private:
29 void OnConfigureSyntheticDelaysComplete();
30
29 scoped_refptr<DevToolsProtocol::Response> OnStart( 31 scoped_refptr<DevToolsProtocol::Response> OnStart(
30 scoped_refptr<DevToolsProtocol::Command> command); 32 scoped_refptr<DevToolsProtocol::Command> command);
31 scoped_refptr<DevToolsProtocol::Response> OnEnd( 33 scoped_refptr<DevToolsProtocol::Response> OnEnd(
32 scoped_refptr<DevToolsProtocol::Command> command); 34 scoped_refptr<DevToolsProtocol::Command> command);
35 scoped_refptr<DevToolsProtocol::Response> OnConfigureSyntheticDelays(
36 scoped_refptr<DevToolsProtocol::Command> command);
33 37
34 base::debug::TraceLog::Options TraceOptionsFromString( 38 base::debug::TraceLog::Options TraceOptionsFromString(
35 const std::string& options); 39 const std::string& options);
36 40
37 bool is_running_; 41 bool is_running_;
38 42
39 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler); 43 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler);
40 }; 44 };
41 45
42 } // namespace content 46 } // namespace content
43 47
44 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ 48 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_protocol_constants.cc ('k') | content/browser/devtools/devtools_tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698