| # Copyright 2024 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//chrome/common/features.gni") |
| import("//extensions/buildflags/buildflags.gni") |
| |
| assert(enable_extensions_core) |
| |
| source_set("web_navigation") { |
| sources = [ |
| "frame_navigation_state.cc", |
| "frame_navigation_state.h", |
| "web_navigation_api.cc", |
| "web_navigation_api.h", |
| "web_navigation_api_constants.cc", |
| "web_navigation_api_constants.h", |
| "web_navigation_api_helpers.cc", |
| "web_navigation_api_helpers.h", |
| "web_navigation_event_router.cc", |
| "web_navigation_event_router.h", |
| "web_navigation_tab_observer.cc", |
| "web_navigation_tab_observer.h", |
| ] |
| |
| public_deps = [ |
| "//base", |
| "//chrome/browser/profiles:profile", |
| "//content/public/browser", |
| "//extensions/browser", |
| "//extensions/buildflags", |
| "//ui/base", |
| "//url", |
| ] |
| |
| deps = [ |
| "//chrome/browser/extensions", |
| "//chrome/browser/ui/browser_window", |
| "//chrome/common", |
| "//chrome/common/extensions/api", |
| "//content/public/browser", |
| "//content/public/common", |
| "//extensions/common:common_constants", |
| "//extensions/common:mojom", |
| "//net", |
| ] |
| |
| if (enable_pdf) { |
| deps += [ |
| "//components/pdf/common:util", |
| "//pdf:buildflags", |
| "//pdf:features", |
| ] |
| } |
| |
| if (is_android) { |
| deps += [ |
| "//chrome/browser/ui/android/tab_model", |
| "//components/tabs:public", |
| ] |
| } else { |
| deps += [ |
| "//chrome/browser/ui:browser_list", |
| "//chrome/browser/ui:browser_tab_strip", |
| ] |
| } |
| } |