| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/macros.h" | 10 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 13 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 14 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 15 #include "chromeos/dbus/power_manager/policy.pb.h" | 14 #include "chromeos/dbus/power_manager/policy.pb.h" |
| 16 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 15 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
| 17 #include "chromeos/dbus/power_manager/suspend.pb.h" | 16 #include "chromeos/dbus/power_manager/suspend.pb.h" |
| 18 #include "chromeos/dbus/power_manager_client.h" | 17 #include "chromeos/dbus/power_manager_client.h" |
| 19 | 18 |
| 20 namespace chromeos { | 19 namespace chromeos { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Note: This should remain the last member so it'll be destroyed and | 109 // Note: This should remain the last member so it'll be destroyed and |
| 111 // invalidate its weak pointers before any other members are destroyed. | 110 // invalidate its weak pointers before any other members are destroyed. |
| 112 base::WeakPtrFactory<FakePowerManagerClient> weak_ptr_factory_; | 111 base::WeakPtrFactory<FakePowerManagerClient> weak_ptr_factory_; |
| 113 | 112 |
| 114 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); | 113 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 } // namespace chromeos | 116 } // namespace chromeos |
| 118 | 117 |
| 119 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ | 118 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ |
| OLD | NEW |