| OLD | NEW |
| 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 #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/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/sha2.h" | 12 #include "base/sha2.h" |
| 13 #include "base/string_util.h" |
| 13 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/renderer/render_view.h" | 15 #include "chrome/renderer/render_view.h" |
| 15 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" | 16 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" |
| 16 #include "chrome/renderer/safe_browsing/features.h" | 17 #include "chrome/renderer/safe_browsing/features.h" |
| 17 #include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h" | 18 #include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h" |
| 18 #include "chrome/renderer/safe_browsing/phishing_term_feature_extractor.h" | 19 #include "chrome/renderer/safe_browsing/phishing_term_feature_extractor.h" |
| 19 #include "chrome/renderer/safe_browsing/phishing_url_feature_extractor.h" | 20 #include "chrome/renderer/safe_browsing/phishing_url_feature_extractor.h" |
| 20 #include "chrome/renderer/safe_browsing/scorer.h" | 21 #include "chrome/renderer/safe_browsing/scorer.h" |
| 21 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 RunCallback(false /* not phishy */, kInvalidScore); | 188 RunCallback(false /* not phishy */, kInvalidScore); |
| 188 } | 189 } |
| 189 | 190 |
| 190 void PhishingClassifier::Clear() { | 191 void PhishingClassifier::Clear() { |
| 191 page_text_ = NULL; | 192 page_text_ = NULL; |
| 192 done_callback_.reset(NULL); | 193 done_callback_.reset(NULL); |
| 193 features_.reset(NULL); | 194 features_.reset(NULL); |
| 194 } | 195 } |
| 195 | 196 |
| 196 } // namespace safe_browsing | 197 } // namespace safe_browsing |
| OLD | NEW |