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

Side by Side Diff: content/renderer/battery_status/battery_status_event_pump.h

Issue 258693012: Add BatteryStatusEventPump in Chromium for sending Battery status events Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 (c) 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_RENDERER_BATTERY_STATUS_BATTERY_STATUS_EVENT_PUMP_H_
6 #define CONTENT_RENDERER_BATTERY_STATUS_BATTERY_STATUS_EVENT_PUMP_H_
7
8 #include "content/public/renderer/render_process_observer.h"
9 #include "content/public/renderer/render_thread.h"
10 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h"
11
12 namespace blink {
13 class WebBatteryStatus;
14 }
15
16 namespace content {
17
18 class CONTENT_EXPORT BatteryStatusEventPump : public RenderProcessObserver {
19 public:
20 BatteryStatusEventPump();
21 virtual ~BatteryStatusEventPump();
22 void SetBatteryStatusListener(blink::WebBatteryStatusListener* listener);
23
24 void Attach(RenderThread* thread);
25 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
26
27 private:
28 blink::WebBatteryStatusListener* listener_;
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_RENDERER_BATTERY_STATUS_BATTERY_STATUS_EVENT_PUMP_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/battery_status/battery_status_event_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698