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

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

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
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 #include "chrome/renderer/safe_browsing/features.h" 5 #include "chrome/renderer/safe_browsing/features.h"
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace safe_browsing { 10 namespace safe_browsing {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const char kPageLinkDomain[] = "PageLinkDomain="; 73 const char kPageLinkDomain[] = "PageLinkDomain=";
74 const char kPageSecureLinksFreq[] = "PageSecureLinksFreq"; 74 const char kPageSecureLinksFreq[] = "PageSecureLinksFreq";
75 75
76 // DOM HTML script features 76 // DOM HTML script features
77 const char kPageNumScriptTagsGTOne[] = "PageNumScriptTags>1"; 77 const char kPageNumScriptTagsGTOne[] = "PageNumScriptTags>1";
78 const char kPageNumScriptTagsGTSix[] = "PageNumScriptTags>6"; 78 const char kPageNumScriptTagsGTSix[] = "PageNumScriptTags>6";
79 79
80 // Other DOM HTML features 80 // Other DOM HTML features
81 const char kPageImgOtherDomainFreq[] = "PageImgOtherDomainFreq"; 81 const char kPageImgOtherDomainFreq[] = "PageImgOtherDomainFreq";
82 82
83 // Page term features
84 const char kPageTerm[] = "PageTerm=";
85
83 } // namespace features 86 } // namespace features
84 } // namespace safe_browsing 87 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/features.h ('k') | chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698