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

Unified Diff: content/renderer/render_thread_impl.h

Issue 10024013: chromeos: Add support for the battery status API on chromeos. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
« no previous file with comments | « content/renderer/battery_status_dispatcher.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 10aa0119277c2126e0e533d5234da8d88242c1f0..eca34c9e50f95416ba7f66d0978df6173963baaa 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -41,6 +41,7 @@ class WebDatabaseObserverImpl;
class WebGraphicsContext3DCommandBufferImpl;
namespace WebKit {
+class WebBatteryMonitor;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
}
@@ -206,6 +207,9 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
// has been lost.
GpuChannelHost* GetGpuChannel();
+ // Gets the embedder implementation of WebBatteryMonitor.
+ WebKit::WebBatteryMonitor* GetBatteryMonitor();
+
// Returns a MessageLoopProxy instance corresponding to the message loop
// of the thread on which file operations should be run. Must be called
// on the renderer's main thread.
@@ -303,6 +307,8 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
+ scoped_ptr<WebKit::WebBatteryMonitor> battery_monitor_;
+
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};
« no previous file with comments | « content/renderer/battery_status_dispatcher.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698