diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/js_injection/common/BUILD.gn | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/js_injection/common/BUILD.gn')
-rw-r--r-- | chromium/components/js_injection/common/BUILD.gn | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/chromium/components/js_injection/common/BUILD.gn b/chromium/components/js_injection/common/BUILD.gn new file mode 100644 index 00000000000..4c444214440 --- /dev/null +++ b/chromium/components/js_injection/common/BUILD.gn @@ -0,0 +1,71 @@ +# Copyright 2020 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("//mojo/public/tools/bindings/mojom.gni") + +mojom("common_mojom") { + sources = [ + "interfaces.mojom", + "origin_matcher.mojom", + ] + + public_deps = [ + "//mojo/public/mojom/base", + "//third_party/blink/public/mojom:mojom_core", + ] + + cpp_typemaps = [ + { + types = [ + { + mojom = "js_injection.mojom.OriginMatcher" + cpp = "::js_injection::OriginMatcher" + }, + { + mojom = "js_injection.mojom.OriginMatcherRule" + cpp = "::std::unique_ptr<::js_injection::OriginMatcherRule>" + move_only = true + }, + ] + traits_headers = [ + "origin_matcher_mojom_traits.h", + "origin_matcher.h", + ] + traits_sources = [ "origin_matcher_mojom_traits.cc" ] + traits_public_deps = [ ":common" ] + }, + ] + overridden_deps = [ "//third_party/blink/public/mojom:mojom_core" ] + component_deps = [ "//third_party/blink/public/common" ] +} + +source_set("common") { + public = [ "origin_matcher.h" ] + sources = [ + "origin_matcher.cc", + "origin_matcher_internal.cc", + "origin_matcher_internal.h", + ] + deps = [ + "//base", + "//net", + "//url", + ] + + # origin_matcher_internal is needed by mojom traits and tests. + friend = [ ":*" ] +} + +source_set("unit_tests") { + testonly = true + sources = [ "origin_matcher_unittest.cc" ] + deps = [ + ":common", + ":common_mojom", + "//base", + "//base/test:test_support", + "//mojo/public/cpp/test_support:test_utils", + "//url", + ] +} |