diff options
author | bajones@chromium.org <bajones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-02 22:09:13 +0000 |
---|---|---|
committer | bajones@chromium.org <bajones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-02 22:09:13 +0000 |
commit | 9dd901522edbaf51a00f03504cac30553b5dbfde (patch) | |
tree | 5e812fac198a30a83f80490814b691ba4b869573 /content/browser/browser_child_process_host_impl.h | |
parent | 1d1b537362626b73838ebbe55d4aed3f8116e7d9 (diff) | |
download | chromium_src-9dd901522edbaf51a00f03504cac30553b5dbfde.zip chromium_src-9dd901522edbaf51a00f03504cac30553b5dbfde.tar.gz chromium_src-9dd901522edbaf51a00f03504cac30553b5dbfde.tar.bz2 |
Created multi-process-friendly PowerMonitor interface.
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
Diffstat (limited to 'content/browser/browser_child_process_host_impl.h')
-rw-r--r-- | content/browser/browser_child_process_host_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/browser_child_process_host_impl.h b/content/browser/browser_child_process_host_impl.h index e25b514..61971d6 100644 --- a/content/browser/browser_child_process_host_impl.h +++ b/content/browser/browser_child_process_host_impl.h @@ -12,6 +12,7 @@ #include "base/process/process.h" #include "base/synchronization/waitable_event_watcher.h" #include "content/browser/child_process_launcher.h" +#include "content/browser/power_monitor_message_broadcaster.h" #include "content/public/browser/browser_child_process_host.h" #include "content/public/browser/child_process_data.h" #include "content/public/common/child_process_host_delegate.h" @@ -104,6 +105,8 @@ class CONTENT_EXPORT BrowserChildProcessHostImpl scoped_ptr<ChildProcessLauncher> child_process_; + PowerMonitorMessageBroadcaster power_monitor_message_broadcaster_; + #if defined(OS_WIN) // Watches to see if the child process exits before the IPC channel has // been connected. Thereafter, its exit is determined by an error on the |