Chromium Code Reviews| 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 705badc829748ea4b5db3131404dbb9db06a9642..202ad3c16ffd7d1da19062c351a2a0624ebb6683 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; |
|
kinuko
2016/06/08 14:26:30
nit: this change's not needed?
Nate Chapin
2016/06/14 22:51:46
Yep, that was necessary in a previous patchset, bu
|
| class ResourceResponse; |
| struct ProgressItem; |
| @@ -59,28 +60,25 @@ public: |
| void finishedParsing(); |
| + void willStartLoading(unsigned long identifier); |
| 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; |