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 28 matching lines...) Expand all Loading... |
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 RefCountedWillBeGarbageCollectedFinalized
<PerformanceTiming>, public ScriptWrappable, public DOMWindowProperty { |
| 49 DEFINE_WRAPPERTYPEINFO(); |
49 public: | 50 public: |
50 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame) | 51 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame) |
51 { | 52 { |
52 return adoptRefWillBeNoop(new PerformanceTiming(frame)); | 53 return adoptRefWillBeNoop(new PerformanceTiming(frame)); |
53 } | 54 } |
54 | 55 |
55 unsigned long long navigationStart() const; | 56 unsigned long long navigationStart() const; |
56 unsigned long long unloadEventStart() const; | 57 unsigned long long unloadEventStart() const; |
57 unsigned long long unloadEventEnd() const; | 58 unsigned long long unloadEventEnd() const; |
58 unsigned long long redirectStart() const; | 59 unsigned long long redirectStart() const; |
(...skipping 21 matching lines...) Expand all Loading... |
80 explicit PerformanceTiming(LocalFrame*); | 81 explicit PerformanceTiming(LocalFrame*); |
81 | 82 |
82 const DocumentTiming* documentTiming() const; | 83 const DocumentTiming* documentTiming() const; |
83 DocumentLoader* documentLoader() const; | 84 DocumentLoader* documentLoader() const; |
84 DocumentLoadTiming* documentLoadTiming() const; | 85 DocumentLoadTiming* documentLoadTiming() const; |
85 ResourceLoadTiming* resourceLoadTiming() const; | 86 ResourceLoadTiming* resourceLoadTiming() const; |
86 | 87 |
87 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; | 88 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; |
88 }; | 89 }; |
89 | 90 |
90 } | 91 } // namespace blink |
91 | 92 |
92 #endif // !defined(PerformanceTiming_h) | 93 #endif // PerformanceTiming_h |
OLD | NEW |