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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "content/browser/devtools/devtools_protocol.h" 13 #include "content/browser/devtools/devtools_protocol.h"
14 #include "content/public/browser/tracing_controller.h" 14 #include "content/public/browser/tracing_controller.h"
15 15
16 namespace base { 16 namespace base {
17 class RefCountedString; 17 class RefCountedString;
18 class Timer; 18 class Timer;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 // This class bridges DevTools remote debugging server with the trace 23 // This class bridges DevTools remote debugging server with the trace
24 // infrastructure. 24 // infrastructure.
25 class DevToolsTracingHandler : public DevToolsProtocol::Handler { 25 class DevToolsTracingHandler : public DevToolsProtocol::Handler {
26 public: 26 public:
27 enum Target { Browser, Renderer }; 27 enum Target { Browser, Renderer };
28 explicit DevToolsTracingHandler(Target target); 28 explicit DevToolsTracingHandler(Target target);
29 virtual ~DevToolsTracingHandler(); 29 ~DevToolsTracingHandler() override;
30 30
31 void OnClientDetached(); 31 void OnClientDetached();
32 32
33 void OnTraceDataCollected(const std::string& trace_fragment); 33 void OnTraceDataCollected(const std::string& trace_fragment);
34 void OnTraceComplete(); 34 void OnTraceComplete();
35 35
36 private: 36 private:
37 void OnRecordingEnabled(scoped_refptr<DevToolsProtocol::Command> command); 37 void OnRecordingEnabled(scoped_refptr<DevToolsProtocol::Command> command);
38 void OnBufferUsage(float usage); 38 void OnBufferUsage(float usage);
39 39
(...skipping 23 matching lines...) Expand all
63 static const double kMinimumReportingInterval; 63 static const double kMinimumReportingInterval;
64 64
65 base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_; 65 base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler); 67 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler);
68 }; 68 };
69 69
70 } // namespace content 70 } // namespace content
71 71
72 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ 72 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_system_info_handler.cc ('k') | content/browser/devtools/devtools_tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698