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

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

Issue 140583003: Chrome power profiler service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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
(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_DEVTOOLS_POWER_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_POWER_HANDLER_H_
7
8 #include "base/time/time.h"
9 #include "content/browser/devtools/devtools_protocol.h"
10 #include "content/browser/power_profiler/power_profiler_observer.h"
11
12 namespace content {
13
14 class DevToolsPowerHandler
15 : public DevToolsProtocol::Handler,
16 public PowerProfilerObserver {
17 public:
18 DevToolsPowerHandler();
19 virtual ~DevToolsPowerHandler();
20
21 virtual void OnPowerEvent(const PowerEventVector&) OVERRIDE;
22
23 private:
24 scoped_refptr<DevToolsProtocol::Response> OnStart(
25 scoped_refptr<DevToolsProtocol::Command> command);
26 scoped_refptr<DevToolsProtocol::Response> OnEnd(
27 scoped_refptr<DevToolsProtocol::Command> command);
28
29 base::Time convertMonotonicTimeToWallTime(const base::TimeTicks&);
qsr 2014/02/13 16:40:13 This probably can be an anonymous inlined function
Pan 2014/02/14 07:17:02 done, thanks
30
31 DISALLOW_COPY_AND_ASSIGN(DevToolsPowerHandler);
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_POWER_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/devtools_power_handler.cc » ('j') | content/browser/devtools/devtools_power_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698