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.
5 #include "device/battery/battery_status_manager.h"
7 #include "base/logging.h"
13 class BatteryStatusManagerDefault
: public BatteryStatusManager
{
15 explicit BatteryStatusManagerDefault(
16 const BatteryStatusService::BatteryUpdateCallback
& callback
) {}
17 ~BatteryStatusManagerDefault() override
{}
20 // BatteryStatusManager:
21 bool StartListeningBatteryChange() override
{
26 void StopListeningBatteryChange() override
{ NOTIMPLEMENTED(); }
28 DISALLOW_COPY_AND_ASSIGN(BatteryStatusManagerDefault
);
34 scoped_ptr
<BatteryStatusManager
> BatteryStatusManager::Create(
35 const BatteryStatusService::BatteryUpdateCallback
& callback
) {
36 return scoped_ptr
<BatteryStatusManager
>(
37 new BatteryStatusManagerDefault(callback
));