diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 22:01:20 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 22:01:20 +0000 |
commit | c855b201a7fbf4b3956079244784450e1adde5d6 (patch) | |
tree | 61e86efbcd6c001fc7a4cef9cdeefa39270432a2 /chrome/renderer/mock_render_thread.h | |
parent | 284547ba566633338d9d6249511fd5f34da178b6 (diff) | |
download | chromium_src-c855b201a7fbf4b3956079244784450e1adde5d6.zip chromium_src-c855b201a7fbf4b3956079244784450e1adde5d6.tar.gz chromium_src-c855b201a7fbf4b3956079244784450e1adde5d6.tar.bz2 |
Revert 24314 - 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.
This time if V8 has been killed for some reason, don't
call into it.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/173379
TBR=mbelshe@google.com
Review URL: http://codereview.chromium.org/174458
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_render_thread.h')
-rw-r--r-- | chrome/renderer/mock_render_thread.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h index 057f0cf..0e5bab8 100644 --- a/chrome/renderer/mock_render_thread.h +++ b/chrome/renderer/mock_render_thread.h @@ -41,13 +41,10 @@ class MockRenderThread : public RenderThreadBase { virtual bool Send(IPC::Message* msg); // Our mock thread doesn't do filtering. - virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) { } - virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) { } - - // Our mock thread doesn't deal with hidden and restored tabs. - virtual void WidgetHidden() { } - virtual void WidgetRestored() { } - + virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) { + } + virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) { + } ////////////////////////////////////////////////////////////////////////// // The following functions are called by the test itself. |