diff options
author | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 19:27:03 +0000 |
---|---|---|
committer | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 19:27:03 +0000 |
commit | 692eae7e273b3e136c4923197f917b5e538beed3 (patch) | |
tree | 15df23df48c3e1629190afe9f7c6f0d38445c94a /chrome/renderer/render_thread.h | |
parent | a53870bb02901bcc9a4c0967bb6d1de338dfaa46 (diff) | |
download | chromium_src-692eae7e273b3e136c4923197f917b5e538beed3.zip chromium_src-692eae7e273b3e136c4923197f917b5e538beed3.tar.gz chromium_src-692eae7e273b3e136c4923197f917b5e538beed3.tar.bz2 |
Revert 24227 - Modify the RenderThread to track the number of widgets
and "hidden widgets" which are running through that thread.
By knowing the if the widgets are all hidden, the thread
can accurately inform V8 when it is idle so that V8 can
better cleanup unused memory when idle.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174303
TBR=mbelshe@google.com
Review URL: http://codereview.chromium.org/174417
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.h')
-rw-r--r-- | chrome/renderer/render_thread.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index 007bac4..5c22236 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -49,10 +49,6 @@ class RenderThreadBase { virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; - - // Called by a RenderWidget when it is hidden or restored. - virtual void WidgetHidden() = 0; - virtual void WidgetRestored() = 0; }; // The RenderThread class represents a background thread where RenderView @@ -83,20 +79,15 @@ class RenderThread : public RenderThreadBase, } virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) { - widget_count_++; return ChildThread::AddRoute(routing_id, listener); } virtual void RemoveRoute(int32 routing_id) { - widget_count_--; return ChildThread::RemoveRoute(routing_id); } virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter); virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter); - virtual void WidgetHidden(); - virtual void WidgetRestored(); - VisitedLinkSlave* visited_link_slave() const { return visited_link_slave_.get(); } @@ -172,11 +163,8 @@ class RenderThread : public RenderThreadBase, // We initialize WebKit as late as possible. void EnsureWebKitInitialized(); - // A task we invoke periodically to assist with idle cleanup. - void IdleHandler(); - // These objects live solely on the render thread. - scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; + scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_; scoped_ptr<VisitedLinkSlave> visited_link_slave_; scoped_ptr<UserScriptSlave> user_script_slave_; scoped_ptr<RenderDnsMaster> dns_master_; @@ -195,18 +183,6 @@ class RenderThread : public RenderThreadBase, // If true, then a GetPlugins call is allowed to rescan the disk. bool plugin_refresh_allowed_; - // Is there a pending task for doing CacheStats. - bool cache_stats_task_pending_; - - // The count of RenderWidgets running through this thread. - int widget_count_; - - // The count of hidden RenderWidgets running through this thread. - int hidden_widget_count_; - - // The current value of the idle notification timer delay. - double idle_notification_delay_in_s_; - DISALLOW_COPY_AND_ASSIGN(RenderThread); }; |