1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
# 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("//components/enterprise/buildflags/buildflags.gni")
import("//components/guest_view/buildflags/buildflags.gni")
import("//components/safe_browsing/buildflags.gni")
import("//extensions/buildflags/buildflags.gni")
assert(is_win || is_mac || is_linux || is_chromeos || is_android)
source_set("file_system_access") {
sources = [
"chrome_file_system_access_permission_context.h",
"file_system_access_features.h",
"file_system_access_permission_context_factory.h",
"file_system_access_permission_request_manager.h",
"file_system_access_tab_helper.h",
]
public_deps = [
"//base",
"//chrome/browser/permissions",
"//chrome/browser/profiles:profile",
"//components/enterprise/buildflags",
"//components/enterprise/common:files_scan_data",
"//content/public/browser",
"//third_party/blink/public/common",
"//url",
]
if (!is_android) {
public_deps += [
"//chrome/browser/web_applications",
"//components/permissions",
"//components/permissions:permissions_common",
]
}
}
source_set("impl") {
sources = [
"chrome_file_system_access_permission_context.cc",
"file_system_access_features.cc",
"file_system_access_permission_context_factory.cc",
"file_system_access_permission_request_manager.cc",
"file_system_access_tab_helper.cc",
]
deps = [
":file_system_access",
"//chrome/browser:browser_process",
"//chrome/browser/content_settings",
"//chrome/browser/content_settings:content_settings_factory",
"//chrome/browser/safe_browsing",
"//chrome/browser/ui",
"//chrome/browser/ui/file_system_access",
"//components/content_settings/core/browser",
"//components/guest_view/buildflags",
"//components/pdf/common:util",
]
if (is_android) {
deps += [ "//chrome/browser/ui/android/tab_model" ]
}
if (safe_browsing_mode != 0) {
deps += [ "//components/safe_browsing/content/common:file_type_policies" ]
}
if (enable_platform_apps) {
deps += [
"//extensions/browser",
"//extensions/common",
]
}
if (enable_guest_view) {
deps += [ "//components/guest_view/browser" ]
}
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
}
if (!is_android) {
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [
"chrome_file_system_access_permission_context_browsertest.cc",
"file_system_access_picker_requires_user_gesture_browsertest.cc",
"file_system_access_tab_helper_browsertest.cc",
"file_system_file_handle_browsertest.cc",
"file_system_observer_browsertest.cc",
]
deps = [
":file_system_access",
"//base",
"//base/test:test_support",
"//chrome/browser/content_settings:content_settings_factory",
"//chrome/browser/profiles:profile",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//components/content_settings/core/browser:cookie_settings",
"//components/content_settings/core/common",
"//components/permissions",
"//components/permissions:permissions_common",
"//components/policy:generated",
"//components/policy:policy_code_generate",
"//components/policy/core/browser",
"//components/policy/core/common",
"//components/policy/core/common:common_constants",
"//components/policy/core/common:test_support",
"//content/public/browser",
"//content/public/common",
"//content/test:test_support",
"//extensions:test_support",
"//net:test_support",
"//testing/gtest",
"//ui/shell_dialogs",
"//url",
]
}
}
source_set("unit_tests") {
testonly = true
sources = [ "chrome_file_system_access_permission_context_unittest.cc" ]
deps = [
":file_system_access",
"//base/test:test_support",
"//chrome/browser/content_settings",
"//chrome/browser/content_settings:content_settings_factory",
"//chrome/test:test_support",
"//components/content_settings/core/browser",
"//components/sync_preferences:test_support",
"//content/test:test_support",
"//ui/shell_dialogs",
"//ui/webui",
]
if (enterprise_cloud_content_analysis) {
deps += [ "//chrome/browser/enterprise/connectors/test:test_support" ]
}
if (!is_android) {
deps +=
[ "//chrome/browser/web_applications:web_applications_test_support" ]
}
}
|