From 9dd901522edbaf51a00f03504cac30553b5dbfde Mon Sep 17 00:00:00 2001 From: "bajones@chromium.org" <bajones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 2 Aug 2013 22:09:13 +0000 Subject: 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 --- content/browser/browser_child_process_host_impl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/browser/browser_child_process_host_impl.h') 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 -- cgit v1.1