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/format_macros.h" | 11 #include "base/format_macros.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
18 #include "base/time.h" | 18 #include "base/time/time.h" |
19 #include "base/timer.h" | 19 #include "base/timer/timer.h" |
20 #include "chromeos/dbus/power_manager/input_event.pb.h" | 20 #include "chromeos/dbus/power_manager/input_event.pb.h" |
21 #include "chromeos/dbus/power_manager/peripheral_battery_status.pb.h" | 21 #include "chromeos/dbus/power_manager/peripheral_battery_status.pb.h" |
22 #include "chromeos/dbus/power_manager/policy.pb.h" | 22 #include "chromeos/dbus/power_manager/policy.pb.h" |
23 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 23 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
24 #include "chromeos/dbus/power_manager/suspend.pb.h" | 24 #include "chromeos/dbus/power_manager/suspend.pb.h" |
25 #include "chromeos/dbus/video_activity_update.pb.h" | 25 #include "chromeos/dbus/video_activity_update.pb.h" |
26 #include "dbus/bus.h" | 26 #include "dbus/bus.h" |
27 #include "dbus/message.h" | 27 #include "dbus/message.h" |
28 #include "dbus/object_path.h" | 28 #include "dbus/object_path.h" |
29 #include "dbus/object_proxy.h" | 29 #include "dbus/object_proxy.h" |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 PowerManagerClient* PowerManagerClient::Create( | 876 PowerManagerClient* PowerManagerClient::Create( |
877 DBusClientImplementationType type, | 877 DBusClientImplementationType type, |
878 dbus::Bus* bus) { | 878 dbus::Bus* bus) { |
879 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 879 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
880 return new PowerManagerClientImpl(bus); | 880 return new PowerManagerClientImpl(bus); |
881 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 881 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
882 return new PowerManagerClientStubImpl(); | 882 return new PowerManagerClientStubImpl(); |
883 } | 883 } |
884 | 884 |
885 } // namespace chromeos | 885 } // namespace chromeos |
OLD | NEW |