diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 21:01:43 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 21:01:43 +0000 |
commit | 0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce (patch) | |
tree | d11b8249b48d62035ea4a735fd0a151d3c3f0f84 /chrome/renderer/mock_render_thread.h | |
parent | 3e39eaddf605708bf70cd138703a91de7e3372e0 (diff) | |
download | chromium_src-0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce.zip chromium_src-0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce.tar.gz chromium_src-0036e3f4c3dfe1c5c553e3697e95e2f27dab81ce.tar.bz2 |
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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24314 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, 7 insertions, 4 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h index 0e5bab8..057f0cf 100644 --- a/chrome/renderer/mock_render_thread.h +++ b/chrome/renderer/mock_render_thread.h @@ -41,10 +41,13 @@ 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) { - } + 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() { } + ////////////////////////////////////////////////////////////////////////// // The following functions are called by the test itself. |