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

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

Issue 16281006: Use a direct include of strings headers in chrome/renderer/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class handles the process of extracting all of the features from a 5 // This class handles the process of extracting all of the features from a
6 // page and computing a phishyness score. The basic steps are: 6 // page and computing a phishyness score. The basic steps are:
7 // - Run each feature extractor over the page, building up a FeatureMap of 7 // - Run each feature extractor over the page, building up a FeatureMap of
8 // feature -> value. 8 // feature -> value.
9 // - SHA-256 hash all of the feature names in the map so that they match the 9 // - SHA-256 hash all of the feature names in the map so that they match the
10 // supplied model. 10 // supplied model.
11 // - Hand the hashed map off to a Scorer, which computes the probability that 11 // - Hand the hashed map off to a Scorer, which computes the probability that
12 // the page is phishy. 12 // the page is phishy.
13 // - If the page is phishy, run the supplied callback. 13 // - If the page is phishy, run the supplied callback.
14 // 14 //
15 // For more details, see phishing_*_feature_extractor.h, scorer.h, and 15 // For more details, see phishing_*_feature_extractor.h, scorer.h, and
16 // client_model.proto. 16 // client_model.proto.
17 17
18 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_CLASSIFIER_H_ 18 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_CLASSIFIER_H_
19 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_CLASSIFIER_H_ 19 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_CLASSIFIER_H_
20 20
21 #include "base/basictypes.h" 21 #include "base/basictypes.h"
22 #include "base/callback.h" 22 #include "base/callback.h"
23 #include "base/memory/scoped_ptr.h" 23 #include "base/memory/scoped_ptr.h"
24 #include "base/memory/weak_ptr.h" 24 #include "base/memory/weak_ptr.h"
25 #include "base/string16.h" 25 #include "base/strings/string16.h"
26 26
27 namespace content { 27 namespace content {
28 class RenderView; 28 class RenderView;
29 } 29 }
30 30
31 namespace safe_browsing { 31 namespace safe_browsing {
32 class ClientPhishingRequest; 32 class ClientPhishingRequest;
33 class FeatureExtractorClock; 33 class FeatureExtractorClock;
34 class FeatureMap; 34 class FeatureMap;
35 class PhishingDOMFeatureExtractor; 35 class PhishingDOMFeatureExtractor;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Used in scheduling BeginFeatureExtraction tasks. 141 // Used in scheduling BeginFeatureExtraction tasks.
142 // These pointers are invalidated if classification is cancelled. 142 // These pointers are invalidated if classification is cancelled.
143 base::WeakPtrFactory<PhishingClassifier> weak_factory_; 143 base::WeakPtrFactory<PhishingClassifier> weak_factory_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(PhishingClassifier); 145 DISALLOW_COPY_AND_ASSIGN(PhishingClassifier);
146 }; 146 };
147 147
148 } // namespace safe_browsing 148 } // namespace safe_browsing
149 149
150 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_CLASSIFIER_H_ 150 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_CLASSIFIER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc ('k') | chrome/renderer/safe_browsing/phishing_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698