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

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: rename method 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 ////////////////////////////////////////////////////
20 // History features.
21 ////////////////////////////////////////////////////
22
23 // Number of visits to that URL stored in the browser history.
24 // Should always be an integer larger than 1 because by the time
25 // we lookup the history the current URL should already be stored there.
26 extern const char kUrlHistoryVisitCount[];
27
28 // Number of times the URL was typed in the Omnibox.
29 extern const char kUrlHistoryTypedCount[];
30
31 // Number of times the URL was reached by clicking a link.
32 extern const char kUrlHistoryLinkCount[];
33
34 // Number of times URL was visited more than 24h ago.
35 extern const char kUrlHistoryVisitCountMoreThan24hAgo[];
36
37 // Number of user-visible visits to all URLs on the same host/port as
38 // the URL for HTTP and HTTPs.
39 extern const char kHttpHostVisitCount[];
40 extern const char kHttpsHostVisitCount[];
41
42 // Boolean feature which is true if the host was visited for the first
43 // time more than 24h ago (only considers user-visible visits like above).
44 extern const char kFirstHttpHostVisitMoreThan24hAgo[];
45 extern const char kFirstHttpsHostVisitMoreThan24hAgo[];
46
47 ////////////////////////////////////////////////////
48 // Browse features.
49 ////////////////////////////////////////////////////
50 // Note that these features may have the following prefixes appended to them
51 // that tell for which page type the feature pertains.
52 extern const char kHostPrefix[];
53 extern const char kRedirectPrefix[];
54
55 // Referrer
56 extern const char kReferrer[];
57 // True if the referrer was stripped because it is an SSL referrer.
58 extern const char kHasSSLReferrer[];
59 // Stores the page transition. See: PageTransition. We strip the qualifier.
60 extern const char kPageTransitionType[];
61 // True if this navigation is the first for this tab.
62 extern const char kIsFirstNavigation[];
63
64 // Resource was fetched from a known bad IP address.
65 extern const char kBadIpFetch[];
66
67 // SafeBrowsing related featues. Fields from the UnsafeResource if there is
68 // any.
69 extern const char kSafeBrowsingMaliciousUrl[];
70 extern const char kSafeBrowsingOriginalUrl[];
71 extern const char kSafeBrowsingIsSubresource[];
72 extern const char kSafeBrowsingThreatType[];
73 } // namespace features
74 } // namespace safe_browsing
75
76 #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