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

Side by Side Diff: chrome/browser/safe_browsing/browser_features.h

Issue 7635010: Add support for client-side phishing detection for non-UMA users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Matt's review comments Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Client-side phishing features that are extracted by the browser, after
6 // receiving a score from the renderer.
7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURES_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURES_H_
10 #pragma once
11
12 namespace safe_browsing {
13 namespace features {
14
15 // IMPORTANT: when adding new features, you must update kAllowedFeatures in
16 // chrome/browser/safe_browsing/client_side_detection_service.cc if the feature
17 // should be sent in sanitized pingbacks.
18 //
19 // TODO(noelutz): move renderer/safe_browsing/features.h to common.
noelutz 2011/08/12 21:27:03 move remove this TODO?
Brian Ryner 2011/08/12 21:32:25 Removed.
20 ////////////////////////////////////////////////////
21 // History features.
22 ////////////////////////////////////////////////////
23
24 // Number of visits to that URL stored in the browser history.
25 // Should always be an integer larger than 1 because by the time
26 // we lookup the history the current URL should already be stored there.
27 extern const char kUrlHistoryVisitCount[];
28
29 // Number of times the URL was typed in the Omnibox.
30 extern const char kUrlHistoryTypedCount[];
31
32 // Number of times the URL was reached by clicking a link.
33 extern const char kUrlHistoryLinkCount[];
34
35 // Number of times URL was visited more than 24h ago.
36 extern const char kUrlHistoryVisitCountMoreThan24hAgo[];
37
38 // Number of user-visible visits to all URLs on the same host/port as
39 // the URL for HTTP and HTTPs.
40 extern const char kHttpHostVisitCount[];
41 extern const char kHttpsHostVisitCount[];
42
43 // Boolean feature which is true if the host was visited for the first
44 // time more than 24h ago (only considers user-visible visits like above).
45 extern const char kFirstHttpHostVisitMoreThan24hAgo[];
46 extern const char kFirstHttpsHostVisitMoreThan24hAgo[];
47
48 ////////////////////////////////////////////////////
49 // Browse features.
50 ////////////////////////////////////////////////////
51 // Note that these features may have the following prefixes appended to them
52 // that tell for which page type the feature pertains.
53 extern const char kHostPrefix[];
54 extern const char kRedirectPrefix[];
55
56 // Referrer
57 extern const char kReferrer[];
58 // True if the referrer was stripped because it is an SSL referrer.
59 extern const char kHasSSLReferrer[];
60 // Stores the page transition. See: PageTransition. We strip the qualifier.
61 extern const char kPageTransitionType[];
62 // True if this navigation is the first for this tab.
63 extern const char kIsFirstNavigation[];
64
65 // Resource was fetched from a known bad IP address.
66 extern const char kBadIpFetch[];
67
68 // SafeBrowsing related featues. Fields from the UnsafeResource if there is
69 // any.
70 extern const char kSafeBrowsingMaliciousUrl[];
71 extern const char kSafeBrowsingOriginalUrl[];
72 extern const char kSafeBrowsingIsSubresource[];
73 extern const char kSafeBrowsingThreatType[];
74 } // namespace features
75 } // namespace safe_browsing
76
77 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURES_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc ('k') | chrome/browser/safe_browsing/browser_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698