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

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

Powered by Google App Engine
This is Rietveld 408576698