| Index: content/browser/frame_host/navigator_impl.h
|
| diff --git a/content/browser/frame_host/navigator_impl.h b/content/browser/frame_host/navigator_impl.h
|
| index 1aa9a609c09b90bc4a08c2209c8b47074e3c56d3..386554c68607e5f1595fcef416a49f656a3d815d 100644
|
| --- a/content/browser/frame_host/navigator_impl.h
|
| +++ b/content/browser/frame_host/navigator_impl.h
|
| @@ -15,6 +15,7 @@ namespace content {
|
| class NavigationControllerImpl;
|
| class NavigatorDelegate;
|
| struct LoadCommittedDetails;
|
| +class LoadProgressTracker;
|
|
|
| // This class is an implementation of Navigator, responsible for managing
|
| // navigations in regular browser tabs.
|
| @@ -49,6 +50,11 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator {
|
| virtual bool NavigateToPendingEntry(
|
| RenderFrameHostImpl* render_frame_host,
|
| NavigationController::ReloadType reload_type) OVERRIDE;
|
| + virtual void DidStartLoading(RenderFrameHostImpl* render_frame_host,
|
| + bool to_different_document) OVERRIDE;
|
| + virtual void DidStopLoading(RenderFrameHostImpl* render_frame_host) OVERRIDE;
|
| + virtual void DidChangeLoadProgress(RenderFrameHostImpl* render_frame_host,
|
| + double load_progress) OVERRIDE;
|
| virtual base::TimeTicks GetCurrentLoadStart() OVERRIDE;
|
| virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
|
| const GURL& url,
|
| @@ -67,8 +73,12 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator {
|
| bool should_replace_current_entry,
|
| bool user_gesture) OVERRIDE;
|
|
|
| + LoadProgressTracker* load_progress_tracker_for_testing() {
|
| + return load_progress_tracker_.get();
|
| + }
|
| +
|
| private:
|
| - virtual ~NavigatorImpl() {}
|
| + virtual ~NavigatorImpl();
|
|
|
| // Navigates to the given entry, which must be the pending entry. Private
|
| // because all callers should use NavigateToPendingEntry.
|
| @@ -92,6 +102,9 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator {
|
| // System time at which the current load was started.
|
| base::TimeTicks current_load_start_;
|
|
|
| + // Reports load progress.
|
| + scoped_ptr<LoadProgressTracker> load_progress_tracker_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
|
| };
|
|
|
|
|