| # Copyright 2020 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("browser") { |
| sources = [ |
| "js_communication_host.cc", |
| "js_communication_host.h", |
| "js_to_browser_messaging.cc", |
| "js_to_browser_messaging.h", |
| "navigation_web_message_sender.cc", |
| "navigation_web_message_sender.h", |
| "web_message.cc", |
| "web_message.h", |
| "web_message_host.h", |
| "web_message_host_factory.h", |
| "web_message_reply_proxy.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/back_forward_cache", |
| "//components/js_injection/common:common_mojom", |
| "//components/origin_matcher", |
| "//content/public/browser", |
| "//mojo/public/cpp/bindings", |
| "//third_party/blink/public/common", |
| "//url", |
| ] |
| } |
| |
| source_set("browser_tests") { |
| testonly = true |
| |
| defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| |
| sources = [ "navigation_listener_browsertest.cc" ] |
| |
| deps = [ |
| ":browser", |
| "//base/test:test_support", |
| "//components/back_forward_cache", |
| "//content/shell:content_shell_lib", |
| "//content/test:browsertest_support", |
| "//content/test:test_support", |
| "//net:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |