| 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 "platform/wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 // DocumentParserTiming is responsible for tracking parser-related timings for a | 15 // DocumentParserTiming is responsible for tracking parser-related timings for a |
| 16 // given document. | 16 // given document. |
| 17 class DocumentParserTiming final | 17 class DocumentParserTiming final |
| 18 : public GarbageCollectedFinalized<DocumentParserTiming>, | 18 : public GarbageCollectedFinalized<DocumentParserTiming>, |
| 19 public Supplement<Document> { | 19 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); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 double parser_blocked_on_script_load_duration_ = 0.0; | 106 double parser_blocked_on_script_load_duration_ = 0.0; |
| 107 double parser_blocked_on_script_load_from_document_write_duration_ = 0.0; | 107 double parser_blocked_on_script_load_from_document_write_duration_ = 0.0; |
| 108 double parser_blocked_on_script_execution_duration_ = 0.0; | 108 double parser_blocked_on_script_execution_duration_ = 0.0; |
| 109 double parser_blocked_on_script_execution_from_document_write_duration_ = 0.0; | 109 double parser_blocked_on_script_execution_from_document_write_duration_ = 0.0; |
| 110 bool parser_detached_ = false; | 110 bool parser_detached_ = false; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| 114 | 114 |
| 115 #endif | 115 #endif |
| OLD | NEW |