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