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 "components/dom_distiller/core/distillable_page_detector.h" | 5 #include "components/dom_distiller/core/distillable_page_detector.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "grit/components_resources.h" | 10 #include "grit/components_resources.h" |
9 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
10 | 12 |
11 namespace dom_distiller { | 13 namespace dom_distiller { |
12 | 14 |
13 const DistillablePageDetector* DistillablePageDetector::GetDefault() { | 15 const DistillablePageDetector* DistillablePageDetector::GetDefault() { |
14 static DistillablePageDetector* detector = nullptr; | 16 static DistillablePageDetector* detector = nullptr; |
15 if (!detector) { | 17 if (!detector) { |
16 std::string serialized_proto = | 18 std::string serialized_proto = |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 73 } |
72 } | 74 } |
73 return score; | 75 return score; |
74 } | 76 } |
75 | 77 |
76 double DistillablePageDetector::GetThreshold() const { | 78 double DistillablePageDetector::GetThreshold() const { |
77 return threshold_; | 79 return threshold_; |
78 } | 80 } |
79 | 81 |
80 } // namespace dom_distiller | 82 } // namespace dom_distiller |
OLD | NEW |