OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 // PhishingDOMFeatureExtractor handles computing DOM-based features for the | 5 // PhishingDOMFeatureExtractor handles computing DOM-based features for the |
6 // client-side phishing detection model. These include the presence of various | 6 // client-side phishing detection model. These include the presence of various |
7 // types of elements, ratios of external and secure links, and tokens for | 7 // types of elements, ratios of external and secure links, and tokens for |
8 // external domains linked to. | 8 // external domains linked to. |
9 | 9 |
10 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ | 10 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ |
11 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ | 11 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/task.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
20 | 20 |
21 class GURL; | 21 class GURL; |
22 | 22 |
23 namespace WebKit { | 23 namespace WebKit { |
24 class WebElement; | 24 class WebElement; |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 class RenderView; | 28 class RenderView; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // Used in scheduling ExtractFeaturesWithTimeout tasks. | 148 // Used in scheduling ExtractFeaturesWithTimeout tasks. |
149 // These pointers are invalidated if extraction is cancelled. | 149 // These pointers are invalidated if extraction is cancelled. |
150 base::WeakPtrFactory<PhishingDOMFeatureExtractor> weak_factory_; | 150 base::WeakPtrFactory<PhishingDOMFeatureExtractor> weak_factory_; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(PhishingDOMFeatureExtractor); | 152 DISALLOW_COPY_AND_ASSIGN(PhishingDOMFeatureExtractor); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace safe_browsing | 155 } // namespace safe_browsing |
156 | 156 |
157 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ | 157 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ |
OLD | NEW |