diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-12 00:16:47 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-12 00:16:47 +0000 |
commit | 410caed3335c728c02133a37a629b58f0b6c8286 (patch) | |
tree | c2b4091a7a7ee29e9fae64a33f12fd99fea0384d /chrome | |
parent | 547591aa666ee2f4a9c141832e928511d70ddf3e (diff) | |
download | chromium_src-410caed3335c728c02133a37a629b58f0b6c8286.zip chromium_src-410caed3335c728c02133a37a629b58f0b6c8286.tar.gz chromium_src-410caed3335c728c02133a37a629b58f0b6c8286.tar.bz2 |
Add private pepper API to keep the throbber spinning while PDFs are loading.
BUG=58795
Review URL: http://codereview.chromium.org/3685003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.cc | 8 | ||||
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.cc b/chrome/renderer/pepper_plugin_delegate_impl.cc index d054dc2..536d71b 100644 --- a/chrome/renderer/pepper_plugin_delegate_impl.cc +++ b/chrome/renderer/pepper_plugin_delegate_impl.cc @@ -757,3 +757,11 @@ std::string PepperPluginDelegateImpl::ResolveProxy(const GURL& url) { RenderThread::current()->Send(msg); return proxy_result; } + +void PepperPluginDelegateImpl::DidStartLoading() { + render_view_->DidStartLoadingForPlugin(); +} + +void PepperPluginDelegateImpl::DidStopLoading() { + render_view_->DidStopLoadingForPlugin(); +} diff --git a/chrome/renderer/pepper_plugin_delegate_impl.h b/chrome/renderer/pepper_plugin_delegate_impl.h index 01925e7..8b09dff 100644 --- a/chrome/renderer/pepper_plugin_delegate_impl.h +++ b/chrome/renderer/pepper_plugin_delegate_impl.h @@ -105,6 +105,8 @@ class PepperPluginDelegateImpl virtual std::string GetDefaultEncoding(); virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor); virtual std::string ResolveProxy(const GURL& url); + virtual void DidStartLoading(); + virtual void DidStopLoading(); private: // Pointer to the RenderView that owns us. |