| 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 "base/metrics/histogram.h" | 5 #include "components/dom_distiller/content/renderer/distillability_agent.h" |
| 6 |
| 7 #include "base/metrics/histogram_macros.h" |
| 6 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 7 | |
| 8 #include "components/dom_distiller/content/common/distillability_service.mojom.h
" | 9 #include "components/dom_distiller/content/common/distillability_service.mojom.h
" |
| 9 #include "components/dom_distiller/content/renderer/distillability_agent.h" | |
| 10 #include "components/dom_distiller/core/distillable_page_detector.h" | 10 #include "components/dom_distiller/core/distillable_page_detector.h" |
| 11 #include "components/dom_distiller/core/experiments.h" | 11 #include "components/dom_distiller/core/experiments.h" |
| 12 #include "components/dom_distiller/core/page_features.h" | 12 #include "components/dom_distiller/core/page_features.h" |
| 13 #include "components/dom_distiller/core/url_utils.h" | 13 #include "components/dom_distiller/core/url_utils.h" |
| 14 #include "content/public/renderer/render_frame.h" | 14 #include "content/public/renderer/render_frame.h" |
| 15 #include "services/service_manager/public/cpp/interface_provider.h" | 15 #include "services/service_manager/public/cpp/interface_provider.h" |
| 16 #include "third_party/WebKit/public/platform/WebDistillability.h" | 16 #include "third_party/WebKit/public/platform/WebDistillability.h" |
| 17 #include "third_party/WebKit/public/web/WebDocument.h" | 17 #include "third_party/WebKit/public/web/WebDocument.h" |
| 18 #include "third_party/WebKit/public/web/WebElement.h" | 18 #include "third_party/WebKit/public/web/WebElement.h" |
| 19 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 19 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 IsDistillablePage(doc, is_last), is_last); | 207 IsDistillablePage(doc, is_last), is_last); |
| 208 } | 208 } |
| 209 | 209 |
| 210 DistillabilityAgent::~DistillabilityAgent() {} | 210 DistillabilityAgent::~DistillabilityAgent() {} |
| 211 | 211 |
| 212 void DistillabilityAgent::OnDestruct() { | 212 void DistillabilityAgent::OnDestruct() { |
| 213 delete this; | 213 delete this; |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace dom_distiller | 216 } // namespace dom_distiller |
| OLD | NEW |