OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class DocumentLoadTiming; | 42 class DocumentLoadTiming; |
43 class DocumentLoader; | 43 class DocumentLoader; |
44 struct DocumentTiming; | 44 struct DocumentTiming; |
45 class LocalFrame; | 45 class LocalFrame; |
46 class ResourceLoadTiming; | 46 class ResourceLoadTiming; |
47 | 47 |
48 class PerformanceTiming FINAL : public RefCountedWillBeGarbageCollectedFinalized
<PerformanceTiming>, public ScriptWrappable, public DOMWindowProperty { | 48 class PerformanceTiming FINAL : public RefCountedWillBeGarbageCollected<Performa
nceTiming>, public ScriptWrappable, public DOMWindowProperty { |
49 DEFINE_WRAPPERTYPEINFO(); | 49 DEFINE_WRAPPERTYPEINFO(); |
| 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); |
50 public: | 51 public: |
51 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame) | 52 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame) |
52 { | 53 { |
53 return adoptRefWillBeNoop(new PerformanceTiming(frame)); | 54 return adoptRefWillBeNoop(new PerformanceTiming(frame)); |
54 } | 55 } |
55 | 56 |
56 unsigned long long navigationStart() const; | 57 unsigned long long navigationStart() const; |
57 unsigned long long unloadEventStart() const; | 58 unsigned long long unloadEventStart() const; |
58 unsigned long long unloadEventEnd() const; | 59 unsigned long long unloadEventEnd() const; |
59 unsigned long long redirectStart() const; | 60 unsigned long long redirectStart() const; |
60 unsigned long long redirectEnd() const; | 61 unsigned long long redirectEnd() const; |
61 unsigned long long fetchStart() const; | 62 unsigned long long fetchStart() const; |
62 unsigned long long domainLookupStart() const; | 63 unsigned long long domainLookupStart() const; |
63 unsigned long long domainLookupEnd() const; | 64 unsigned long long domainLookupEnd() const; |
64 unsigned long long connectStart() const; | 65 unsigned long long connectStart() const; |
65 unsigned long long connectEnd() const; | 66 unsigned long long connectEnd() const; |
66 unsigned long long secureConnectionStart() const; | 67 unsigned long long secureConnectionStart() const; |
67 unsigned long long requestStart() const; | 68 unsigned long long requestStart() const; |
68 unsigned long long responseStart() const; | 69 unsigned long long responseStart() const; |
69 unsigned long long responseEnd() const; | 70 unsigned long long responseEnd() const; |
70 unsigned long long domLoading() const; | 71 unsigned long long domLoading() const; |
71 unsigned long long domInteractive() const; | 72 unsigned long long domInteractive() const; |
72 unsigned long long domContentLoadedEventStart() const; | 73 unsigned long long domContentLoadedEventStart() const; |
73 unsigned long long domContentLoadedEventEnd() const; | 74 unsigned long long domContentLoadedEventEnd() const; |
74 unsigned long long domComplete() const; | 75 unsigned long long domComplete() const; |
75 unsigned long long loadEventStart() const; | 76 unsigned long long loadEventStart() const; |
76 unsigned long long loadEventEnd() const; | 77 unsigned long long loadEventEnd() const; |
77 | 78 |
78 void trace(Visitor*) { } | 79 virtual void trace(Visitor*) OVERRIDE; |
79 | 80 |
80 private: | 81 private: |
81 explicit PerformanceTiming(LocalFrame*); | 82 explicit PerformanceTiming(LocalFrame*); |
82 | 83 |
83 const DocumentTiming* documentTiming() const; | 84 const DocumentTiming* documentTiming() const; |
84 DocumentLoader* documentLoader() const; | 85 DocumentLoader* documentLoader() const; |
85 DocumentLoadTiming* documentLoadTiming() const; | 86 DocumentLoadTiming* documentLoadTiming() const; |
86 ResourceLoadTiming* resourceLoadTiming() const; | 87 ResourceLoadTiming* resourceLoadTiming() const; |
87 | 88 |
88 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; | 89 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; |
89 }; | 90 }; |
90 | 91 |
91 } // namespace blink | 92 } // namespace blink |
92 | 93 |
93 #endif // PerformanceTiming_h | 94 #endif // PerformanceTiming_h |
OLD | NEW |