Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebDistillability.h |
| diff --git a/third_party/WebKit/public/platform/WebDistillability.h b/third_party/WebKit/public/platform/WebDistillability.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3c95d1157f6b02c7e63966652fb3ea85f831eac9 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/WebDistillability.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebDistillability_h |
| +#define WebDistillability_h |
| + |
| +namespace blink { |
| + |
| +struct WebDistillabilityFeatures { |
| + bool openGraph; |
| + unsigned elementCount; |
| + unsigned anchorCount; |
| + unsigned formCount; |
| + unsigned textInputCount; |
| + unsigned passwordInputCount; |
| + unsigned pCount; |
| + unsigned preCount; |
| + unsigned innerTextLength; |
| + unsigned textContentLength; |
| + double mozScore; |
|
esprehn
2015/10/26 21:43:09
This needs a comment in the code or a link to what
|
| + double mozScoreAllSqrt; |
| + double mozScoreAllLinear; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebDistillability_h |