| 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",
|
| + ]
|
| +}
|
|
|