summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r--chrome/renderer/render_view.cc9
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;