| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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 // Common types and constants for extracting and evaluating features in the |    5 // Common types and constants for extracting and evaluating features in the | 
|    6 // client-side phishing detection model.  A feature is simply a string and an |    6 // client-side phishing detection model.  A feature is simply a string and an | 
|    7 // associated floating-point value between 0 and 1.  The phishing |    7 // associated floating-point value between 0 and 1.  The phishing | 
|    8 // classification model contains rules which give an appropriate weight to each |    8 // classification model contains rules which give an appropriate weight to each | 
|    9 // feature or combination of features.  These values can then be summed to |    9 // feature or combination of features.  These values can then be summed to | 
|   10 // compute a final phishiness score. |   10 // compute a final phishiness score. | 
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  151 // Set if the number of <script> elements in the page is greater than 6. |  151 // Set if the number of <script> elements in the page is greater than 6. | 
|  152 extern const char kPageNumScriptTagsGTSix[]; |  152 extern const char kPageNumScriptTagsGTSix[]; | 
|  153  |  153  | 
|  154 //////////////////////////////////////////////////// |  154 //////////////////////////////////////////////////// | 
|  155 // Other DOM HTML features |  155 // Other DOM HTML features | 
|  156 //////////////////////////////////////////////////// |  156 //////////////////////////////////////////////////// | 
|  157  |  157  | 
|  158 // The fraction of images whose src attribute points to an external domain. |  158 // The fraction of images whose src attribute points to an external domain. | 
|  159 extern const char kPageImgOtherDomainFreq[]; |  159 extern const char kPageImgOtherDomainFreq[]; | 
|  160  |  160  | 
 |  161 //////////////////////////////////////////////////// | 
 |  162 // Page term features | 
 |  163 //////////////////////////////////////////////////// | 
 |  164  | 
 |  165 // Token feature for a term (whitespace-delimited) on a page.  Terms can be | 
 |  166 // single words or multi-word n-grams.  Rather than adding this feature for | 
 |  167 // every possible token on a page, only the terms that are mentioned in the | 
 |  168 // classification model are added. | 
 |  169 extern const char kPageTerm[]; | 
 |  170  | 
|  161 }  // namespace features |  171 }  // namespace features | 
|  162 }  // namepsace safe_browsing |  172 }  // namepsace safe_browsing | 
|  163  |  173  | 
|  164 #endif  // CHROME_RENDERER_SAFE_BROWSING_FEATURES_H_ |  174 #endif  // CHROME_RENDERER_SAFE_BROWSING_FEATURES_H_ | 
| OLD | NEW |