| 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 "chrome/browser/chromeos/power/power_state_override.h" | 5 #include "chrome/browser/chromeos/power/power_state_override.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
| 11 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 11 #include "chromeos/dbus/power_manager_client.h" |
| 12 | 12 |
| 13 using chromeos::PowerManagerClient; | 13 using chromeos::PowerManagerClient; |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 const int kHeartbeatTimeInSecs = 300; | 17 const int kHeartbeatTimeInSecs = 300; |
| 18 | 18 |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 PowerManagerClient::DISABLE_IDLE_DIM | | 52 PowerManagerClient::DISABLE_IDLE_DIM | |
| 53 PowerManagerClient::DISABLE_IDLE_BLANK | | 53 PowerManagerClient::DISABLE_IDLE_BLANK | |
| 54 PowerManagerClient::DISABLE_IDLE_SUSPEND | | 54 PowerManagerClient::DISABLE_IDLE_SUSPEND | |
| 55 PowerManagerClient::DISABLE_IDLE_LID_SUSPEND, | 55 PowerManagerClient::DISABLE_IDLE_LID_SUSPEND, |
| 56 base::Bind(&PowerStateOverride::Heartbeat, | 56 base::Bind(&PowerStateOverride::Heartbeat, |
| 57 weak_ptr_factory_.GetWeakPtr())); | 57 weak_ptr_factory_.GetWeakPtr())); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace chromeos | 61 } // namespace chromeos |
| OLD | NEW |