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

Unified Diff: third_party/WebKit/Source/core/loader/ProgressTracker.cpp

Issue 2712033002: Part 1 Of Renaming FrameLoaderClient to LocalFrameClient. (Closed)
Patch Set: Change all forward declarations of FrameLoaderClient to LocalFrameClient and fix call sites. Created 3 years, 10 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: third_party/WebKit/Source/core/loader/ProgressTracker.cpp
diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
index 90b5e231fe48b62f5a94c1502d1109e4ff3adfe1..e54714344ace0ab61b1c7b3841c4c5e9392ad44c 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
@@ -99,13 +99,13 @@ void ProgressTracker::reset() {
m_finishedParsing = false;
}
-FrameLoaderClient* ProgressTracker::frameLoaderClient() const {
+LocalFrameClient* ProgressTracker::localFrameClient() const {
return m_frame->client();
}
void ProgressTracker::progressStarted(FrameLoadType type) {
if (!m_frame->isLoading())
- frameLoaderClient()->didStartLoading(NavigationToDifferentDocument);
+ localFrameClient()->didStartLoading(NavigationToDifferentDocument);
reset();
m_progressValue = initialProgressValue;
m_frame->setIsLoading(true);
@@ -117,7 +117,7 @@ void ProgressTracker::progressCompleted() {
m_frame->setIsLoading(false);
sendFinalProgress();
reset();
- frameLoaderClient()->didStopLoading();
+ localFrameClient()->didStopLoading();
InspectorInstrumentation::frameStoppedLoading(m_frame);
}
@@ -130,7 +130,7 @@ void ProgressTracker::sendFinalProgress() {
if (m_progressValue == 1)
return;
m_progressValue = 1;
- frameLoaderClient()->progressEstimateChanged(m_progressValue);
+ localFrameClient()->progressEstimateChanged(m_progressValue);
}
void ProgressTracker::willStartLoading(unsigned long identifier,
@@ -224,7 +224,7 @@ void ProgressTracker::maybeSendProgress() {
m_progressValue - m_lastNotifiedProgressValue;
if (notificationProgressDelta >= progressNotificationInterval ||
notifiedProgressTimeDelta >= progressNotificationTimeInterval) {
- frameLoaderClient()->progressEstimateChanged(m_progressValue);
+ localFrameClient()->progressEstimateChanged(m_progressValue);
m_lastNotifiedProgressValue = m_progressValue;
m_lastNotifiedProgressTime = now;
}

Powered by Google App Engine
This is Rietveld 408576698