diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 00:44:39 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 00:44:39 +0000 |
commit | e4be2dd25b1883bad7bed358e52e04f01c6e6f78 (patch) | |
tree | 842b39b7ea3547a97e07e2d4dcbb4795020c435c /chrome/renderer | |
parent | 6415176be8ad6b36d4adafa1c8e76aa89c5ca17c (diff) | |
download | chromium_src-e4be2dd25b1883bad7bed358e52e04f01c6e6f78.zip chromium_src-e4be2dd25b1883bad7bed358e52e04f01c6e6f78.tar.gz chromium_src-e4be2dd25b1883bad7bed358e52e04f01c6e6f78.tar.bz2 |
Deinline even more destructors.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/5794003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_thread.cc | 8 | ||||
-rw-r--r-- | chrome/renderer/render_thread.h | 4 | ||||
-rw-r--r-- | chrome/renderer/translate_helper.cc | 4 | ||||
-rw-r--r-- | chrome/renderer/translate_helper.h | 2 |
4 files changed, 15 insertions, 3 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index 285211b..a7f2495 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -494,6 +494,14 @@ void RenderThread::WidgetRestored() { idle_timer_.Stop(); } +bool RenderThread::IsExtensionProcess() const { + return is_extension_process_; +} + +bool RenderThread::IsIncognitoProcess() const { + return is_incognito_process_; +} + void RenderThread::DoNotSuspendWebKitSharedTimer() { suspend_webkit_shared_timer_ = false; } diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index adfc65e..2bd59db 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -163,8 +163,8 @@ class RenderThread : public RenderThreadBase, virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter); virtual void WidgetHidden(); virtual void WidgetRestored(); - virtual bool IsExtensionProcess() const { return is_extension_process_; } - virtual bool IsIncognitoProcess() const { return is_incognito_process_; } + virtual bool IsExtensionProcess() const; + virtual bool IsIncognitoProcess() const; // These methods modify how the next message is sent. Normally, when sending // a synchronous message that runs a nested message loop, we need to suspend diff --git a/chrome/renderer/translate_helper.cc b/chrome/renderer/translate_helper.cc index a630f51..6535c91 100644 --- a/chrome/renderer/translate_helper.cc +++ b/chrome/renderer/translate_helper.cc @@ -229,6 +229,10 @@ std::string TranslateHelper::GetOriginalPageLanguage() { return lang; } +bool TranslateHelper::DontDelayTasks() { + return false; +} + //////////////////////////////////////////////////////////////////////////////// // TranslateHelper, private: // diff --git a/chrome/renderer/translate_helper.h b/chrome/renderer/translate_helper.h index 04c623e..60a0bf5 100644 --- a/chrome/renderer/translate_helper.h +++ b/chrome/renderer/translate_helper.h @@ -82,7 +82,7 @@ class TranslateHelper { // Used in unit-tests. Makes the various tasks be posted immediately so that // the tests don't have to wait before checking states. - virtual bool DontDelayTasks() { return false; } + virtual bool DontDelayTasks(); private: // Checks if the current running page translation is finished or errored and |