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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentParserTiming.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DocumentParserTiming_h 5 #ifndef DocumentParserTiming_h
6 #define DocumentParserTiming_h 6 #define DocumentParserTiming_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LocalFrame; 15 class LocalFrame;
16 16
17 // DocumentParserTiming is responsible for tracking parser-related timings for a 17 // DocumentParserTiming is responsible for tracking parser-related timings for a
18 // given document. 18 // given document.
19 class DocumentParserTiming final : public GarbageCollectedFinalized<DocumentPars erTiming>, public HeapSupplement<Document> { 19 class DocumentParserTiming final : public GarbageCollectedFinalized<DocumentPars erTiming>, public Supplement<Document> {
20 WTF_MAKE_NONCOPYABLE(DocumentParserTiming); 20 WTF_MAKE_NONCOPYABLE(DocumentParserTiming);
21 USING_GARBAGE_COLLECTED_MIXIN(DocumentParserTiming); 21 USING_GARBAGE_COLLECTED_MIXIN(DocumentParserTiming);
22 22
23 public: 23 public:
24 virtual ~DocumentParserTiming() {} 24 virtual ~DocumentParserTiming() {}
25 25
26 static DocumentParserTiming& from(Document&); 26 static DocumentParserTiming& from(Document&);
27 27
28 // markParserStart and markParserStop methods record the time that the 28 // markParserStart and markParserStop methods record the time that the
29 // parser was first started/stopped, and notify that the document parser 29 // parser was first started/stopped, and notify that the document parser
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 double m_parserStop = 0.0; 69 double m_parserStop = 0.0;
70 double m_parserBlockedOnScriptLoadDuration = 0.0; 70 double m_parserBlockedOnScriptLoadDuration = 0.0;
71 bool m_parserDetached = false; 71 bool m_parserDetached = false;
72 72
73 Member<Document> m_document; 73 Member<Document> m_document;
74 }; 74 };
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif 78 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698