summaryrefslogtreecommitdiffstats
path: root/base/power_monitor
Commit message (Collapse)AuthorAgeFilesLines
* Removes MessageLoop::Type checks in favor of IsCurrent on MessageLoops.sky@chromium.org2014-01-201-1/+1
| | | | | | | | | | | | This is part of removing the MessageLoop::Type enum. BUG=none TEST=none R=darin@chromium.org Review URL: https://codereview.chromium.org/141683005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245882 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WM_POWERBROADCAST handlingyukawa@chromium.org2013-11-052-59/+36
| | | | | | | | | | | | | This is a follow up CL of r185433, which mistook |message| for |wparam|. With this CL, base::PowerMonitor and base::PowerObserver become functional again on Windows. BUG=314477, 149059 TEST=manually done with a debugger (by disconnecting the power supply cable) Review URL: https://codereview.chromium.org/57383002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232900 0039d316-1c4b-4281-b951-d872f2087c98
* Moved power_monitor_test_base to a more appropriate locationbajones@chromium.org2013-08-093-115/+1
| | | | | | | | | | | BUG=236031 R=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216592 Review URL: https://codereview.chromium.org/22482002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216716 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 216592 "Moved power_monitor_test_base to a more appropria..."nhiroki@chromium.org2013-08-093-1/+115
| | | | | | | | | | | | | | | | | | | | This is likely to cause compile failure. http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20x64%20Builder&number=8821 http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20Aura%20Builder&number=10861 > Moved power_monitor_test_base to a more appropriate location > > BUG=236031 > R=brettw@chromium.org > > Review URL: https://codereview.chromium.org/22482002 TBR=bajones@chromium.org Review URL: https://codereview.chromium.org/22569005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216601 0039d316-1c4b-4281-b951-d872f2087c98
* Moved power_monitor_test_base to a more appropriate locationbajones@chromium.org2013-08-093-115/+1
| | | | | | | | | BUG=236031 R=brettw@chromium.org Review URL: https://codereview.chromium.org/22482002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216592 0039d316-1c4b-4281-b951-d872f2087c98
* Created multi-process-friendly PowerMonitor interface.bajones@chromium.org2013-08-0215-269/+522
| | | | | | | | | | | | | PowerMonitor status is now captured in the browser process, which has the appropriate UI thread, and then sent via IPC to other processes which are interested in the power state. BUG=236031 R=apatrick@chromium.org, jam@chromium.org, jar@chromium.org, jvoung@chromium.org, kbr@chromium.org, mpcomplete@chromium.org, palmer@chromium.org, piman@chromium.org, vandebo@chromium.org Review URL: https://codereview.chromium.org/17074009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215381 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of the message_loop header in base/.avi@chromium.org2013-07-181-1/+1
| | | | | | | | | | BUG=260807 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/19224003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212281 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in base/, part 2.avi@chromium.org2013-06-282-2/+2
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/18119002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209144 0039d316-1c4b-4281-b951-d872f2087c98
* Fix blocking of shutdown on Windowsscottmg@chromium.org2013-05-021-0/+7
| | | | | | | | | | | | | | | | | Some code was creating windows in the renderer process. These windows are included in Windows' enumeration of a renderer's threads at log off/shutdown. Renderers do not have a UI message loop (aren't pumped) and so don't respond to messages that Windows sends during shutdown. As a result, they appear hung, and shutdown is blocked. Remove two locations that were creating windows, and add a DCHECK that the main renderer thread does not create windows. BUG=230122,236031,236039 Review URL: https://chromiumcodereview.appspot.com/14305025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197922 0039d316-1c4b-4281-b951-d872f2087c98
* Split the power monitoring feature from SystemMonitorhongbo.min@intel.com2013-04-0310-0/+714
The SystemMonitor is a mixed monitor which not only monitors the power state changes but also the devices changes. This patch is to separate the power monitor from SystemMonitor as a new class PowerMonitor which is dedicated to monitor power state. The next step is to seek a opportunity to refactor SystemMonitor as something like DeviceMonitor. BUG=149059 TEST=base_unittests --gtest_filter=PowerMonitorTest.* Review URL: https://chromiumcodereview.appspot.com/10959020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192114 0039d316-1c4b-4281-b951-d872f2087c98