| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "DocumentStatisticsCollector.h" | 5 #include "DocumentStatisticsCollector.h" |
| 6 | 6 |
| 7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
| 8 #include "core/InputTypeNames.h" | 8 #include "core/InputTypeNames.h" |
| 9 #include "core/dom/ElementTraversal.h" | 9 #include "core/dom/ElementTraversal.h" |
| 10 #include "core/dom/NodeComputedStyle.h" | 10 #include "core/dom/NodeComputedStyle.h" |
| 11 #include "core/dom/Text.h" | 11 #include "core/dom/Text.h" |
| 12 #include "core/frame/FrameHost.h" | 12 #include "core/frame/FrameHost.h" |
| 13 #include "core/frame/LocalFrame.h" |
| 14 #include "core/frame/VisualViewport.h" |
| 13 #include "core/html/HTMLHeadElement.h" | 15 #include "core/html/HTMLHeadElement.h" |
| 14 #include "core/html/HTMLInputElement.h" | 16 #include "core/html/HTMLInputElement.h" |
| 15 #include "core/html/HTMLMetaElement.h" | 17 #include "core/html/HTMLMetaElement.h" |
| 16 #include "platform/Histogram.h" | 18 #include "platform/Histogram.h" |
| 17 #include "public/platform/Platform.h" | 19 #include "public/platform/Platform.h" |
| 18 #include "public/platform/WebDistillability.h" | 20 #include "public/platform/WebDistillability.h" |
| 19 | 21 |
| 20 namespace blink { | 22 namespace blink { |
| 21 | 23 |
| 22 using namespace HTMLNames; | 24 using namespace HTMLNames; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 245 |
| 244 double elapsedTime = monotonicallyIncreasingTime() - startTime; | 246 double elapsedTime = monotonicallyIncreasingTime() - startTime; |
| 245 | 247 |
| 246 DEFINE_STATIC_LOCAL(CustomCountHistogram, distillabilityHistogram, ("WebCore
.DistillabilityUs", 1, 1000000, 50)); | 248 DEFINE_STATIC_LOCAL(CustomCountHistogram, distillabilityHistogram, ("WebCore
.DistillabilityUs", 1, 1000000, 50)); |
| 247 distillabilityHistogram.count(static_cast<int>(1e6 * elapsedTime)); | 249 distillabilityHistogram.count(static_cast<int>(1e6 * elapsedTime)); |
| 248 | 250 |
| 249 return features; | 251 return features; |
| 250 } | 252 } |
| 251 | 253 |
| 252 } // namespace blink | 254 } // namespace blink |
| OLD | NEW |