OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 ~ProgressTracker(); | 50 ~ProgressTracker(); |
51 void trace(Visitor*); | 51 void trace(Visitor*); |
52 void dispose(); | 52 void dispose(); |
53 | 53 |
54 double estimatedProgress() const; | 54 double estimatedProgress() const; |
55 | 55 |
56 void progressStarted(); | 56 void progressStarted(); |
57 void progressCompleted(); | 57 void progressCompleted(); |
58 | 58 |
59 void incrementProgress(unsigned long identifier, const ResourceResponse&); | 59 void incrementProgress(unsigned long identifier, const ResourceResponse&); |
60 void incrementProgress(unsigned long identifier, const char*, int); | 60 void incrementProgress(unsigned long identifier, int); |
61 void completeProgress(unsigned long identifier); | 61 void completeProgress(unsigned long identifier); |
62 | 62 |
63 long long totalPageAndResourceBytesToLoad() const { return m_totalPageAndRes
ourceBytesToLoad; } | 63 long long totalPageAndResourceBytesToLoad() const { return m_totalPageAndRes
ourceBytesToLoad; } |
64 long long totalBytesReceived() const { return m_totalBytesReceived; } | 64 long long totalBytesReceived() const { return m_totalBytesReceived; } |
65 | 65 |
66 private: | 66 private: |
67 explicit ProgressTracker(LocalFrame*); | 67 explicit ProgressTracker(LocalFrame*); |
68 | 68 |
69 void reset(); | 69 void reset(); |
70 | 70 |
71 RawPtrWillBeMember<LocalFrame> m_frame; | 71 RawPtrWillBeMember<LocalFrame> m_frame; |
72 bool m_inProgress; | 72 bool m_inProgress; |
73 long long m_totalPageAndResourceBytesToLoad; | 73 long long m_totalPageAndResourceBytesToLoad; |
74 long long m_totalBytesReceived; | 74 long long m_totalBytesReceived; |
75 double m_lastNotifiedProgressValue; | 75 double m_lastNotifiedProgressValue; |
76 double m_lastNotifiedProgressTime; | 76 double m_lastNotifiedProgressTime; |
77 double m_progressNotificationInterval; | 77 double m_progressNotificationInterval; |
78 double m_progressNotificationTimeInterval; | 78 double m_progressNotificationTimeInterval; |
79 bool m_finalProgressChangedSent; | 79 bool m_finalProgressChangedSent; |
80 double m_progressValue; | 80 double m_progressValue; |
81 | 81 |
82 HashMap<unsigned long, OwnPtr<ProgressItem> > m_progressItems; | 82 HashMap<unsigned long, OwnPtr<ProgressItem> > m_progressItems; |
83 }; | 83 }; |
84 | 84 |
85 } | 85 } |
86 | 86 |
87 #endif | 87 #endif |
OLD | NEW |