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 #include "chrome/renderer/safe_browsing/phishing_classifier.h" | 5 #include "chrome/renderer/safe_browsing/phishing_classifier.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "chrome/common/safe_browsing/csd.pb.h" | |
19 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
20 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" | 19 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" |
21 #include "chrome/renderer/safe_browsing/features.h" | 20 #include "chrome/renderer/safe_browsing/features.h" |
22 #include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h" | 21 #include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h" |
23 #include "chrome/renderer/safe_browsing/phishing_term_feature_extractor.h" | 22 #include "chrome/renderer/safe_browsing/phishing_term_feature_extractor.h" |
24 #include "chrome/renderer/safe_browsing/phishing_url_feature_extractor.h" | 23 #include "chrome/renderer/safe_browsing/phishing_url_feature_extractor.h" |
25 #include "chrome/renderer/safe_browsing/scorer.h" | 24 #include "chrome/renderer/safe_browsing/scorer.h" |
| 25 #include "components/safe_browsing/csd.pb.h" |
26 #include "content/public/renderer/render_frame.h" | 26 #include "content/public/renderer/render_frame.h" |
27 #include "crypto/sha2.h" | 27 #include "crypto/sha2.h" |
28 #include "third_party/WebKit/public/platform/WebURL.h" | 28 #include "third_party/WebKit/public/platform/WebURL.h" |
29 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 29 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
30 #include "third_party/WebKit/public/web/WebDataSource.h" | 30 #include "third_party/WebKit/public/web/WebDataSource.h" |
31 #include "third_party/WebKit/public/web/WebDocument.h" | 31 #include "third_party/WebKit/public/web/WebDocument.h" |
32 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 32 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
33 #include "third_party/WebKit/public/web/WebView.h" | 33 #include "third_party/WebKit/public/web/WebView.h" |
34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
35 | 35 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 242 } |
243 | 243 |
244 void PhishingClassifier::Clear() { | 244 void PhishingClassifier::Clear() { |
245 page_text_ = NULL; | 245 page_text_ = NULL; |
246 done_callback_.Reset(); | 246 done_callback_.Reset(); |
247 features_.reset(NULL); | 247 features_.reset(NULL); |
248 shingle_hashes_.reset(NULL); | 248 shingle_hashes_.reset(NULL); |
249 } | 249 } |
250 | 250 |
251 } // namespace safe_browsing | 251 } // namespace safe_browsing |
OLD | NEW |