| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef PerformanceTiming_h | 31 #ifndef PerformanceTiming_h |
| 32 #define PerformanceTiming_h | 32 #define PerformanceTiming_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 36 #include "core/frame/DOMWindowProperty.h" | 36 #include "core/frame/DOMWindowProperty.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "wtf/PassRefPtr.h" | |
| 39 #include "wtf/RefCounted.h" | |
| 40 | 38 |
| 41 namespace blink { | 39 namespace blink { |
| 42 | 40 |
| 43 class DocumentLoadTiming; | 41 class DocumentLoadTiming; |
| 44 class DocumentLoader; | 42 class DocumentLoader; |
| 45 class DocumentTiming; | 43 class DocumentTiming; |
| 46 class LocalFrame; | 44 class LocalFrame; |
| 47 class ResourceLoadTiming; | 45 class ResourceLoadTiming; |
| 48 | 46 |
| 49 class CORE_EXPORT PerformanceTiming final : public RefCountedWillBeGarbageCollec
ted<PerformanceTiming>, public ScriptWrappable, public DOMWindowProperty { | 47 class CORE_EXPORT PerformanceTiming final : public GarbageCollectedFinalized<Per
formanceTiming>, public ScriptWrappable, public DOMWindowProperty { |
| 50 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
| 51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); |
| 52 public: | 50 public: |
| 53 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame) | 51 static PerformanceTiming* create(LocalFrame* frame) |
| 54 { | 52 { |
| 55 return adoptRefWillBeNoop(new PerformanceTiming(frame)); | 53 return new PerformanceTiming(frame); |
| 56 } | 54 } |
| 57 | 55 |
| 58 unsigned long long navigationStart() const; | 56 unsigned long long navigationStart() const; |
| 59 unsigned long long unloadEventStart() const; | 57 unsigned long long unloadEventStart() const; |
| 60 unsigned long long unloadEventEnd() const; | 58 unsigned long long unloadEventEnd() const; |
| 61 unsigned long long redirectStart() const; | 59 unsigned long long redirectStart() const; |
| 62 unsigned long long redirectEnd() const; | 60 unsigned long long redirectEnd() const; |
| 63 unsigned long long fetchStart() const; | 61 unsigned long long fetchStart() const; |
| 64 unsigned long long domainLookupStart() const; | 62 unsigned long long domainLookupStart() const; |
| 65 unsigned long long domainLookupEnd() const; | 63 unsigned long long domainLookupEnd() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 87 | 85 |
| 88 const DocumentTiming* documentTiming() const; | 86 const DocumentTiming* documentTiming() const; |
| 89 DocumentLoader* documentLoader() const; | 87 DocumentLoader* documentLoader() const; |
| 90 DocumentLoadTiming* documentLoadTiming() const; | 88 DocumentLoadTiming* documentLoadTiming() const; |
| 91 ResourceLoadTiming* resourceLoadTiming() const; | 89 ResourceLoadTiming* resourceLoadTiming() const; |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace blink | 92 } // namespace blink |
| 95 | 93 |
| 96 #endif // PerformanceTiming_h | 94 #endif // PerformanceTiming_h |
| OLD | NEW |