Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1467)

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 1080143003: Move DidStartLoading, DidStopLoading, DidChangeLoadProgress to RFHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index a1742d8172a31928d7befb3424091104e4008528..dc1eede9f4f4b5a4e3438cc01bd3dcb41b94b969 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -378,9 +378,6 @@ class CONTENT_EXPORT WebContentsImpl
const GURL& GetMainFrameLastCommittedURL() const override;
void RenderFrameCreated(RenderFrameHost* render_frame_host) override;
void RenderFrameDeleted(RenderFrameHost* render_frame_host) override;
- void DidStartLoading(RenderFrameHost* render_frame_host,
- bool to_different_document) override;
- void DidStopLoading() override;
void SwappedOut(RenderFrameHost* render_frame_host) override;
void DidDeferAfterResponseStarted(
const TransitionLayerData& transition_data) override;
@@ -547,6 +544,10 @@ class CONTENT_EXPORT WebContentsImpl
void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
const OpenURLParams& params) override;
bool ShouldPreserveAbortedURLs() override;
+ void DidStartLoading(FrameTreeNode* frame_tree_node,
+ bool to_different_document) override;
+ void DidStopLoading() override;
+ void DidChangeLoadProgress() override;
// RenderWidgetHostDelegate --------------------------------------------------
@@ -786,9 +787,6 @@ class CONTENT_EXPORT WebContentsImpl
const GURL& target_url);
void OnDocumentLoadedInFrame();
void OnDidFinishLoad(const GURL& url);
- void OnDidStartLoading(bool to_different_document);
- void OnDidStopLoading();
- void OnDidChangeLoadProgress(double load_progress);
void OnGoToEntryAtOffset(int offset);
void OnUpdateZoomLimits(int minimum_percent,
int maximum_percent);
@@ -919,11 +917,11 @@ class CONTENT_EXPORT WebContentsImpl
// Tracking loading progress -------------------------------------------------
- // Resets the tracking state of the current load.
+ // Resets the tracking state of the current load progress.
void ResetLoadProgressState();
- // Calculates the progress of the current load and notifies the delegate.
- void SendLoadProgressChanged();
+ // Notifies the delegate that the load progress was updated.
+ void SendChangeLoadProgress();
// Misc non-view stuff -------------------------------------------------------
@@ -1080,8 +1078,6 @@ class CONTENT_EXPORT WebContentsImpl
net::LoadStateWithParam load_state_;
base::string16 load_state_host_;
- double loading_total_progress_;
-
base::TimeTicks loading_last_progress_update_;
// Upload progress, for displaying in the status bar.
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698