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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 // PhishingUrlFeatureExtractor handles computing URL-based features for 5 // PhishingUrlFeatureExtractor handles computing URL-based features for
6 // the client-side phishing detection model. These include tokens in the 6 // the client-side phishing detection model. These include tokens in the
7 // host and path, features pertaining to host length, and IP addresses. 7 // host and path, features pertaining to host length, and IP addresses.
8 8
9 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_URL_FEATURE_EXTRACTOR_H_ 9 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_URL_FEATURE_EXTRACTOR_H_
10 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_URL_FEATURE_EXTRACTOR_H_ 10 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_URL_FEATURE_EXTRACTOR_H_
11 11
12 #include <stddef.h>
13
12 #include <string> 14 #include <string>
13 #include <vector> 15 #include <vector>
14 16
15 #include "base/basictypes.h" 17 #include "base/macros.h"
16 18
17 class GURL; 19 class GURL;
18 20
19 namespace safe_browsing { 21 namespace safe_browsing {
20 class FeatureMap; 22 class FeatureMap;
21 23
22 class PhishingUrlFeatureExtractor { 24 class PhishingUrlFeatureExtractor {
23 public: 25 public:
24 PhishingUrlFeatureExtractor(); 26 PhishingUrlFeatureExtractor();
25 ~PhishingUrlFeatureExtractor(); 27 ~PhishingUrlFeatureExtractor();
(...skipping 13 matching lines...) Expand all
39 static void SplitStringIntoLongAlphanumTokens( 41 static void SplitStringIntoLongAlphanumTokens(
40 const std::string& full, 42 const std::string& full,
41 std::vector<std::string>* tokens); 43 std::vector<std::string>* tokens);
42 44
43 DISALLOW_COPY_AND_ASSIGN(PhishingUrlFeatureExtractor); 45 DISALLOW_COPY_AND_ASSIGN(PhishingUrlFeatureExtractor);
44 }; 46 };
45 47
46 } // namespace safe_browsing 48 } // namespace safe_browsing
47 49
48 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_URL_FEATURE_EXTRACTOR_H_ 50 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_URL_FEATURE_EXTRACTOR_H_
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_term_feature_extractor_unittest.cc ('k') | chrome/renderer/safe_browsing/scorer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698