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

Unified Diff: components/safe_browsing/renderer/phishing_classifier.cc

Issue 2667343006: Componentize safe_browsing [X+1] : move the renderer part to component.
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing/renderer/phishing_classifier.cc
diff --git a/chrome/renderer/safe_browsing/phishing_classifier.cc b/components/safe_browsing/renderer/phishing_classifier.cc
similarity index 93%
rename from chrome/renderer/safe_browsing/phishing_classifier.cc
rename to components/safe_browsing/renderer/phishing_classifier.cc
index a2246d52d41d8fe1287994d4d362edaa99975553..489098cc8cea3f3cd39b1bdfc8368635ed67e904 100644
--- a/chrome/renderer/safe_browsing/phishing_classifier.cc
+++ b/components/safe_browsing/renderer/phishing_classifier.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/renderer/safe_browsing/phishing_classifier.h"
+#include "components/safe_browsing/renderer/phishing_classifier.h"
#include <string>
@@ -15,14 +15,14 @@
#include "base/single_thread_task_runner.h"
#include "base/strings/string_util.h"
#include "base/threading/thread_task_runner_handle.h"
+// TODO(timvolodine): move proto to component
#include "chrome/common/safe_browsing/csd.pb.h"
-#include "chrome/common/url_constants.h"
-#include "chrome/renderer/safe_browsing/feature_extractor_clock.h"
-#include "chrome/renderer/safe_browsing/features.h"
-#include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h"
-#include "chrome/renderer/safe_browsing/phishing_term_feature_extractor.h"
-#include "chrome/renderer/safe_browsing/phishing_url_feature_extractor.h"
-#include "chrome/renderer/safe_browsing/scorer.h"
+#include "components/safe_browsing/renderer/feature_extractor_clock.h"
+#include "components/safe_browsing/renderer/features.h"
+#include "components/safe_browsing/renderer/phishing_dom_feature_extractor.h"
+#include "components/safe_browsing/renderer/phishing_term_feature_extractor.h"
+#include "components/safe_browsing/renderer/phishing_url_feature_extractor.h"
+#include "components/safe_browsing/renderer/scorer.h"
#include "content/public/renderer/render_frame.h"
#include "crypto/sha2.h"
#include "third_party/WebKit/public/platform/WebURL.h"

Powered by Google App Engine
This is Rietveld 408576698