Update V8 to version 4.7.24.
[chromium-blink-merge.git] / device / battery / battery_status_manager_default.cc
blobbb392907f72f63afbc182f80a157365530e9e171
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"
9 namespace device {
11 namespace {
13 class BatteryStatusManagerDefault : public BatteryStatusManager {
14 public:
15 explicit BatteryStatusManagerDefault(
16 const BatteryStatusService::BatteryUpdateCallback& callback) {}
17 ~BatteryStatusManagerDefault() override {}
19 private:
20 // BatteryStatusManager:
21 bool StartListeningBatteryChange() override {
22 NOTIMPLEMENTED();
23 return false;
26 void StopListeningBatteryChange() override { NOTIMPLEMENTED(); }
28 DISALLOW_COPY_AND_ASSIGN(BatteryStatusManagerDefault);
31 } // namespace
33 // static
34 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create(
35 const BatteryStatusService::BatteryUpdateCallback& callback) {
36 return scoped_ptr<BatteryStatusManager>(
37 new BatteryStatusManagerDefault(callback));
40 } // namespace device