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 <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
15 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
16 #include "base/power_monitor/power_monitor_device_source.h" | 19 #include "base/power_monitor/power_monitor_device_source.h" |
17 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_split.h" | 21 #include "base/strings/string_split.h" |
19 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
20 #include "base/threading/platform_thread.h" | 23 #include "base/threading/platform_thread.h" |
21 #include "base/timer/timer.h" | 24 #include "base/timer/timer.h" |
22 #include "chromeos/chromeos_switches.h" | 25 #include "chromeos/chromeos_switches.h" |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 // static | 792 // static |
790 PowerManagerClient* PowerManagerClient::Create( | 793 PowerManagerClient* PowerManagerClient::Create( |
791 DBusClientImplementationType type) { | 794 DBusClientImplementationType type) { |
792 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 795 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
793 return new PowerManagerClientImpl(); | 796 return new PowerManagerClientImpl(); |
794 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 797 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
795 return new FakePowerManagerClient(); | 798 return new FakePowerManagerClient(); |
796 } | 799 } |
797 | 800 |
798 } // namespace chromeos | 801 } // namespace chromeos |
OLD | NEW |