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

Side by Side Diff: device/battery/battery_monitor_impl.h

Issue 457933002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « device/battery/battery_monitor.mojom ('k') | device/battery/battery_monitor_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/memory/scoped_ptr.h"
6 #include "device/battery/battery_export.h"
7 #include "device/battery/battery_monitor.mojom.h"
8 #include "device/battery/battery_status_service.h"
9
10 #ifndef DEVICE_BATTERY_BATTERY_MONITOR_IMPL_H_
11 #define DEVICE_BATTERY_BATTERY_MONITOR_IMPL_H_
12
13 namespace device {
14
15 class BatteryMonitorImpl : public mojo::InterfaceImpl<BatteryMonitor> {
16 public:
17 DEVICE_BATTERY_EXPORT static void Create(
18 mojo::InterfaceRequest<BatteryMonitor> request);
19
20 private:
21 BatteryMonitorImpl();
22 virtual ~BatteryMonitorImpl();
23
24 // mojo::InterfaceImpl<..> methods:
25 virtual void OnConnectionEstablished() OVERRIDE;
26
27 void DidChange(const BatteryStatus& battery_status);
28
29 scoped_ptr<BatteryStatusService::BatteryUpdateSubscription> subscription_;
30 };
31
32 } // namespace device
33
34 #endif // DEVICE_BATTERY_BATTERY_MONITOR_IMPL_H_
OLDNEW
« no previous file with comments | « device/battery/battery_monitor.mojom ('k') | device/battery/battery_monitor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698