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 24 matching lines...) Expand all Loading... |
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 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class DocumentLoadTiming; | 41 class DocumentLoadTiming; |
42 class DocumentLoader; | 42 class DocumentLoader; |
43 class DocumentTiming; | 43 class DocumentTiming; |
44 class LocalFrame; | 44 class LocalFrame; |
| 45 class PaintTiming; |
45 class ResourceLoadTiming; | 46 class ResourceLoadTiming; |
46 class ScriptState; | 47 class ScriptState; |
47 class ScriptValue; | 48 class ScriptValue; |
48 | 49 |
49 class CORE_EXPORT PerformanceTiming final : public GarbageCollectedFinalized<Per
formanceTiming>, public ScriptWrappable, public DOMWindowProperty { | 50 class CORE_EXPORT PerformanceTiming final : public GarbageCollectedFinalized<Per
formanceTiming>, public ScriptWrappable, public DOMWindowProperty { |
50 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); | 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); |
52 public: | 53 public: |
53 static PerformanceTiming* create(LocalFrame* frame) | 54 static PerformanceTiming* create(LocalFrame* frame) |
54 { | 55 { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 93 |
93 DECLARE_VIRTUAL_TRACE(); | 94 DECLARE_VIRTUAL_TRACE(); |
94 | 95 |
95 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; | 96 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; |
96 double integerMillisecondsToMonotonicTime(unsigned long long) const; | 97 double integerMillisecondsToMonotonicTime(unsigned long long) const; |
97 | 98 |
98 private: | 99 private: |
99 explicit PerformanceTiming(LocalFrame*); | 100 explicit PerformanceTiming(LocalFrame*); |
100 | 101 |
101 const DocumentTiming* documentTiming() const; | 102 const DocumentTiming* documentTiming() const; |
| 103 const PaintTiming* paintTiming() const; |
102 DocumentLoader* documentLoader() const; | 104 DocumentLoader* documentLoader() const; |
103 DocumentLoadTiming* documentLoadTiming() const; | 105 DocumentLoadTiming* documentLoadTiming() const; |
104 ResourceLoadTiming* resourceLoadTiming() const; | 106 ResourceLoadTiming* resourceLoadTiming() const; |
105 }; | 107 }; |
106 | 108 |
107 } // namespace blink | 109 } // namespace blink |
108 | 110 |
109 #endif // PerformanceTiming_h | 111 #endif // PerformanceTiming_h |
OLD | NEW |