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

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

Issue 1860743002: Add a flag to change when android's progress bar completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/loader/ProgressTracker.h
diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.h b/third_party/WebKit/Source/core/loader/ProgressTracker.h
index 3c740069e5088c728279f26ce285c50cdb2d5881..0941784f6080576f50afda1a078b33dbf1f332d2 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.h
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.h
@@ -37,6 +37,7 @@
namespace blink {
class LocalFrame;
+class Resource;
class ResourceResponse;
struct ProgressItem;
@@ -59,32 +60,32 @@ public:
void finishedParsing();
+ void willSendRequest(const Resource*);
void incrementProgress(unsigned long identifier, const ResourceResponse&);
void incrementProgress(unsigned long identifier, int);
void completeProgress(unsigned long identifier);
- long long totalPageAndResourceBytesToLoad() const { return m_totalPageAndResourceBytesToLoad; }
- long long totalBytesReceived() const { return m_totalBytesReceived; }
-
private:
explicit ProgressTracker(LocalFrame*);
void incrementProgressForMainResourceOnly(unsigned long identifier, int length);
+ void maybeSendProgress();
void sendFinalProgress();
void reset();
Member<LocalFrame> m_frame;
- unsigned long m_mainResourceIdentifier;
- long long m_totalPageAndResourceBytesToLoad;
- long long m_totalBytesReceived;
double m_lastNotifiedProgressValue;
double m_lastNotifiedProgressTime;
double m_progressNotificationInterval;
double m_progressNotificationTimeInterval;
+ bool m_finishedParsing;
bool m_finalProgressChangedSent;
double m_progressValue;
+ long long m_bytesLoadedSoFar;
HashMap<unsigned long, OwnPtr<ProgressItem>> m_progressItems;
+ Vector<double> m_progressUpdate;
+ Vector<long long> m_bytesSoFarUpdate;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698