Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: chrome/renderer/safe_browsing/features.h

Issue 3214002: Add a term feature extractor for client-side phishing detection. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Add an extra comment/TODO about performance. Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/renderer/safe_browsing/features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/renderer/safe_browsing/features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698