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 "content/browser/battery_status/battery_status_manager.h"
7 #include "base/logging.h"
13 class BatteryStatusManagerDefault
: public BatteryStatusManager
{
15 explicit BatteryStatusManagerDefault(
16 const BatteryStatusService::BatteryUpdateCallback
& callback
) {}
17 virtual ~BatteryStatusManagerDefault() {}
20 // BatteryStatusManager:
21 virtual bool StartListeningBatteryChange() OVERRIDE
{
26 virtual 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
));
40 } // namespace content