Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.h

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing piman feedback [Part 2] Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_process_host_ui_shim.h
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.h b/content/browser/gpu/gpu_process_host_ui_shim.h
index 9f4329a10a5898418a502e13b544af7fe572e8cb..8c560c757036878a172c3b1d738bde0629b3c42d 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.h
+++ b/content/browser/gpu/gpu_process_host_ui_shim.h
@@ -16,9 +16,11 @@
#include "base/compiler_specific.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "content/common/content_export.h"
#include "content/common/message_router.h"
+#include "content/common/power_monitor_message_broadcaster.h"
#include "content/public/common/gpu_memory_stats.h"
#include "gpu/config/gpu_info.h"
#include "ipc/ipc_listener.h"
@@ -49,7 +51,7 @@ class GpuProcessHostUIShim : public IPC::Listener,
public:
// Create a GpuProcessHostUIShim with the given ID. The object can be found
// using FromID with the same id.
- static GpuProcessHostUIShim* Create(int host_id);
+ static GpuProcessHostUIShim* Create(int host_id, bool single_process);
// Destroy the GpuProcessHostUIShim with the given host ID. This can only
// be called on the UI thread. Only the GpuProcessHost should destroy the
@@ -79,7 +81,7 @@ class GpuProcessHostUIShim : public IPC::Listener,
CONTENT_EXPORT void SimulateHang();
private:
- explicit GpuProcessHostUIShim(int host_id);
+ explicit GpuProcessHostUIShim(int host_id, bool single_process);
piman 2013/07/15 20:51:30 nit: no need for explicit any more.
virtual ~GpuProcessHostUIShim();
// Message handlers.
@@ -111,6 +113,8 @@ class GpuProcessHostUIShim : public IPC::Listener,
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
int host_id_;
+
+ scoped_ptr<PowerMonitorMessageBroadcaster> power_monitor_broadcaster_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698