Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceTiming.h

Issue 2592953004: Replace DOMWindowProperty in core/timing/ with ContextClient (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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/dom/ContextLifecycleObserver.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 CSSTiming; 41 class CSSTiming;
42 class DocumentLoadTiming; 42 class DocumentLoadTiming;
43 class DocumentLoader; 43 class DocumentLoader;
44 class DocumentParserTiming; 44 class DocumentParserTiming;
45 class DocumentTiming; 45 class DocumentTiming;
46 class LocalFrame; 46 class LocalFrame;
47 class PaintTiming; 47 class PaintTiming;
48 class ResourceLoadTiming; 48 class ResourceLoadTiming;
49 class ScriptState; 49 class ScriptState;
50 class ScriptValue; 50 class ScriptValue;
51 51
52 // Legacy support for NT1(https://www.w3.org/TR/navigation-timing/). 52 // Legacy support for NT1(https://www.w3.org/TR/navigation-timing/).
53 class CORE_EXPORT PerformanceTiming final 53 class CORE_EXPORT PerformanceTiming final
54 : public GarbageCollected<PerformanceTiming>, 54 : public GarbageCollected<PerformanceTiming>,
55 public ScriptWrappable, 55 public ScriptWrappable,
56 public DOMWindowProperty { 56 public ContextClient {
57 DEFINE_WRAPPERTYPEINFO(); 57 DEFINE_WRAPPERTYPEINFO();
58 USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); 58 USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming);
59 59
60 public: 60 public:
61 static PerformanceTiming* create(LocalFrame* frame) { 61 static PerformanceTiming* create(LocalFrame* frame) {
62 return new PerformanceTiming(frame); 62 return new PerformanceTiming(frame);
63 } 63 }
64 64
65 unsigned long long navigationStart() const; 65 unsigned long long navigationStart() const;
66 unsigned long long unloadEventStart() const; 66 unsigned long long unloadEventStart() const;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const DocumentParserTiming* documentParserTiming() const; 126 const DocumentParserTiming* documentParserTiming() const;
127 const PaintTiming* paintTiming() const; 127 const PaintTiming* paintTiming() const;
128 DocumentLoader* documentLoader() const; 128 DocumentLoader* documentLoader() const;
129 DocumentLoadTiming* documentLoadTiming() const; 129 DocumentLoadTiming* documentLoadTiming() const;
130 ResourceLoadTiming* resourceLoadTiming() const; 130 ResourceLoadTiming* resourceLoadTiming() const;
131 }; 131 };
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif // PerformanceTiming_h 135 #endif // PerformanceTiming_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698