OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/dbus/power_manager_client.h" | 5 #include "chromeos/dbus/power_manager_client.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/threading/platform_thread.h" | 18 #include "base/threading/platform_thread.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 #include "chromeos/chromeos_switches.h" | 21 #include "chromeos/chromeos_switches.h" |
22 #include "chromeos/dbus/power_manager/input_event.pb.h" | 22 #include "chromeos/dbus/power_manager/input_event.pb.h" |
23 #include "chromeos/dbus/power_manager/peripheral_battery_status.pb.h" | 23 #include "chromeos/dbus/power_manager/peripheral_battery_status.pb.h" |
24 #include "chromeos/dbus/power_manager/policy.pb.h" | 24 #include "chromeos/dbus/power_manager/policy.pb.h" |
25 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 25 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 PowerManagerClient* PowerManagerClient::Create( | 858 PowerManagerClient* PowerManagerClient::Create( |
859 DBusClientImplementationType type, | 859 DBusClientImplementationType type, |
860 dbus::Bus* bus) { | 860 dbus::Bus* bus) { |
861 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 861 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
862 return new PowerManagerClientImpl(bus); | 862 return new PowerManagerClientImpl(bus); |
863 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 863 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
864 return new PowerManagerClientStubImpl(); | 864 return new PowerManagerClientStubImpl(); |
865 } | 865 } |
866 | 866 |
867 } // namespace chromeos | 867 } // namespace chromeos |
OLD | NEW |