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

Unified Diff: components/safe_browsing/renderer/BUILD.gn

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
« no previous file with comments | « components/safe_browsing/common/BUILD.gn ('k') | components/safe_browsing/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing/renderer/BUILD.gn
diff --git a/components/safe_browsing/renderer/BUILD.gn b/components/safe_browsing/renderer/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..6387e9fe7e45aeb1526a4cd587f6a42395c84734
--- /dev/null
+++ b/components/safe_browsing/renderer/BUILD.gn
@@ -0,0 +1,75 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/features.gni")
+
+source_set("renderer") {
+ sources = [
+ "mock_feature_extractor_clock.cc",
+ "mock_feature_extractor_clock.h",
+ "test_utils.cc",
+ "test_utils.h",
+ ]
+ deps = [
+ "//base",
+ "//ipc",
+ "//url/ipc:url_ipc",
+ ]
+
+ if (safe_browsing_mode != 0) {
+ sources += [
+ "safe_browsing/threat_dom_details.cc",
+ "safe_browsing/threat_dom_details.h",
+ ]
+ deps += [ "//components/safe_browsing/common:common" ]
+ if (safe_browsing_mode == 1) {
+ sources += [
+ "feature_extractor_clock.cc",
+ "feature_extractor_clock.h",
+ "features.cc",
+ "features.h",
+ "murmurhash3_util.cc",
+ "murmurhash3_util.h",
+ "phishing_classifier.cc",
+ "phishing_classifier.h",
+ "phishing_classifier_delegate.cc",
+ "phishing_classifier_delegate.h",
+ "phishing_dom_feature_extractor.cc",
+ "phishing_dom_feature_extractor.h",
+ "phishing_term_feature_extractor.cc",
+ "phishing_term_feature_extractor.h",
+ "phishing_url_feature_extractor.cc",
+ "phishing_url_feature_extractor.h",
+ "scorer.cc",
+ "scorer.h",
+ ]
+ deps += [
+ # TODO(timvolodine): fix this
+ "//chrome/common/safe_browsing:proto",
+ "//third_party/smhasher:murmurhash3",
+ ]
+ }
+ }
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "features_unittest.cc",
+ "murmurhash3_util_unittest.h",
+ "phishing_term_feature_extractor_unittest.cc",
+ "phishing_url_feature_extractor_unittest.cc",
+ "scorer_unittest.cc",
+ ]
+
+ deps = [
+ ":renderer",
+ "//base:i18n",
+ "//components/safe_browsing/common",
+ "//ipc:ipc",
+ "//testing/gtest",
+ "//third_party/WebKit/public:blink",
+ "//third_party/icu",
+ ]
+}
« no previous file with comments | « components/safe_browsing/common/BUILD.gn ('k') | components/safe_browsing/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698