Chromium Code Reviews| Index: content/browser/devtools/devtools_power_handler.h |
| diff --git a/content/browser/devtools/devtools_power_handler.h b/content/browser/devtools/devtools_power_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a58c1373c6cdeb7b15a8bd3fa193f98d422d4bef |
| --- /dev/null |
| +++ b/content/browser/devtools/devtools_power_handler.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_POWER_HANDLER_H_ |
| +#define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_POWER_HANDLER_H_ |
| + |
| +#include "base/time/time.h" |
| +#include "content/browser/devtools/devtools_protocol.h" |
| +#include "content/browser/power_profiler/power_profiler_observer.h" |
| + |
| +namespace content { |
| + |
| +class DevToolsPowerHandler |
|
pfeldman
2014/02/14 08:11:09
Please define schema for your new domain in browse
|
| + : public DevToolsProtocol::Handler, |
| + public PowerProfilerObserver { |
| + public: |
| + DevToolsPowerHandler(); |
| + virtual ~DevToolsPowerHandler(); |
| + |
| + virtual void OnPowerEvent(const PowerEventVector&) OVERRIDE; |
| + |
| + private: |
| + scoped_refptr<DevToolsProtocol::Response> OnStart( |
| + scoped_refptr<DevToolsProtocol::Command> command); |
| + scoped_refptr<DevToolsProtocol::Response> OnEnd( |
| + scoped_refptr<DevToolsProtocol::Command> command); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DevToolsPowerHandler); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_POWER_HANDLER_H_ |