diff options
author | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 17:14:24 +0000 |
---|---|---|
committer | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 17:14:24 +0000 |
commit | 9010941b17ea056d5dd8e28707262fa91d36b000 (patch) | |
tree | 5a8e1fa84a141794908c9d8dcbe1fa1aa699584a /chrome/renderer/render_view.cc | |
parent | 8627eab5446ced705605ea0c2084ee4c8adcbc65 (diff) | |
download | chromium_src-9010941b17ea056d5dd8e28707262fa91d36b000.zip chromium_src-9010941b17ea056d5dd8e28707262fa91d36b000.tar.gz chromium_src-9010941b17ea056d5dd8e28707262fa91d36b000.tar.bz2 |
Plumbing load progress notifications to the browser.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/4694006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r-- | chrome/renderer/render_view.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index ca0c0e5..b7240f5 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -69,6 +69,7 @@ #include "chrome/renderer/geolocation_dispatcher_old.h" #endif #include "chrome/renderer/ggl/ggl.h" +#include "chrome/renderer/load_progress_tracker.h" #include "chrome/renderer/localized_error.h" #include "chrome/renderer/media/audio_renderer_impl.h" #include "chrome/renderer/media/ipc_video_decoder.h" @@ -2200,6 +2201,9 @@ void RenderView::didStopLoading() { Send(new ViewHostMsg_DidStopLoading(routing_id_)); + if (load_progress_tracker_ != NULL) + load_progress_tracker_->DidStopLoading(); + MessageLoop::current()->PostDelayedTask( FROM_HERE, page_info_method_factory_.NewRunnableMethod( @@ -2207,6 +2211,11 @@ void RenderView::didStopLoading() { send_content_state_immediately_ ? 0 : kDelayForCaptureMs); } +void RenderView::didChangeLoadProgress(WebFrame* frame, double load_progress) { + if (load_progress_tracker_ != NULL) + load_progress_tracker_->DidChangeLoadProgress(frame, load_progress); +} + bool RenderView::isSmartInsertDeleteEnabled() { #if defined(OS_MACOSX) return true; |