| Index: content/renderer/battery_status/battery_status_event_pump.h
|
| diff --git a/content/renderer/battery_status/battery_status_event_pump.h b/content/renderer/battery_status/battery_status_event_pump.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..89d2f8fcc3994e4e9e58a21228ee1e6fb7e7d5dc
|
| --- /dev/null
|
| +++ b/content/renderer/battery_status/battery_status_event_pump.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 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_RENDERER_BATTERY_STATUS_BATTERY_STATUS_EVENT_PUMP_H_
|
| +#define CONTENT_RENDERER_BATTERY_STATUS_BATTERY_STATUS_EVENT_PUMP_H_
|
| +
|
| +#include "content/public/renderer/render_process_observer.h"
|
| +#include "content/public/renderer/render_thread.h"
|
| +#include "third_party/WebKit/public/platform/WebBatteryStatusListener.h"
|
| +
|
| +namespace blink {
|
| +class WebBatteryStatus;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class CONTENT_EXPORT BatteryStatusEventPump : public RenderProcessObserver {
|
| + public:
|
| + BatteryStatusEventPump();
|
| + virtual ~BatteryStatusEventPump();
|
| + void SetBatteryStatusListener(blink::WebBatteryStatusListener* listener);
|
| +
|
| + void Attach(RenderThread* thread);
|
| + virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
|
| +
|
| + private:
|
| + blink::WebBatteryStatusListener* listener_;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_BATTERY_STATUS_BATTERY_STATUS_EVENT_PUMP_H_
|
|
|