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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class LocalFrame; | 38 class LocalFrame; |
39 class ResourceResponse; | 39 class ResourceResponse; |
40 struct ProgressItem; | 40 struct ProgressItem; |
41 | 41 |
42 // FIXME: This is only used on Android. Android is the only Chrome | 42 // FIXME: This is only used on Android. Android is the only Chrome |
43 // browser which shows a progress bar during loading. | 43 // browser which shows a progress bar during loading. |
44 // We should find a better way for Android to get this data and remove this! | 44 // We should find a better way for Android to get this data and remove this! |
45 class ProgressTracker FINAL : public NoBaseWillBeGarbageCollectedFinalized<Progr
essTracker> { | 45 class ProgressTracker final : public NoBaseWillBeGarbageCollectedFinalized<Progr
essTracker> { |
46 WTF_MAKE_NONCOPYABLE(ProgressTracker); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED; | 46 WTF_MAKE_NONCOPYABLE(ProgressTracker); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED; |
47 public: | 47 public: |
48 static PassOwnPtrWillBeRawPtr<ProgressTracker> create(LocalFrame*); | 48 static PassOwnPtrWillBeRawPtr<ProgressTracker> create(LocalFrame*); |
49 | 49 |
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 |
(...skipping 22 matching lines...) Expand all Loading... |
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 |