| OLD | NEW |
| 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; | |
| 16 | 15 |
| 17 // DocumentParserTiming is responsible for tracking parser-related timings for a | 16 // DocumentParserTiming is responsible for tracking parser-related timings for a |
| 18 // given document. | 17 // given document. |
| 19 class DocumentParserTiming final | 18 class DocumentParserTiming final |
| 20 : public GarbageCollectedFinalized<DocumentParserTiming>, | 19 : public GarbageCollectedFinalized<DocumentParserTiming>, |
| 21 public Supplement<Document> { | 20 public Supplement<Document> { |
| 22 WTF_MAKE_NONCOPYABLE(DocumentParserTiming); | 21 WTF_MAKE_NONCOPYABLE(DocumentParserTiming); |
| 23 USING_GARBAGE_COLLECTED_MIXIN(DocumentParserTiming); | 22 USING_GARBAGE_COLLECTED_MIXIN(DocumentParserTiming); |
| 24 | 23 |
| 25 public: | 24 public: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 double m_parserBlockedOnScriptExecutionDuration = 0.0; | 109 double m_parserBlockedOnScriptExecutionDuration = 0.0; |
| 111 double m_parserBlockedOnScriptExecutionFromDocumentWriteDuration = 0.0; | 110 double m_parserBlockedOnScriptExecutionFromDocumentWriteDuration = 0.0; |
| 112 bool m_parserDetached = false; | 111 bool m_parserDetached = false; |
| 113 | 112 |
| 114 Member<Document> m_document; | 113 Member<Document> m_document; |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 } // namespace blink | 116 } // namespace blink |
| 118 | 117 |
| 119 #endif | 118 #endif |
| OLD | NEW |