* [AI Chat] Local code execution tool * Move `CodeSandboxScriptStorage` ownership to `AIChatService`, store & return `std::string` from storage * Update code execution tool event UI * Add `CodeSandboxNavigationThrottle` * Omit window and location in code execution scope * Remove `CodeSandboxScriptStorage` * Use sandboxed iframe for code execution, use primary OTR profile * Use script injection for code execution * `expandedContent` should be null if `jsCode` is null * Address PR feedback * Address PR feedback * Address PR feedback * Move code sandbox webui constants
76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
# Copyright (c) 2017 The Brave Authors. All rights reserved.
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
import("//brave/build/config.gni")
|
|
import("//brave/components/brave_wallet/common/buildflags/buildflags.gni")
|
|
import("//build/buildflag_header.gni")
|
|
import("//build/util/branding.gni")
|
|
import("//extensions/buildflags/buildflags.gni")
|
|
import("//mojo/public/tools/bindings/mojom.gni")
|
|
|
|
brave_common_visibility_targets = [
|
|
":*",
|
|
"//brave:browser_dependencies",
|
|
"//brave:child_dependencies",
|
|
"//brave/browser/*",
|
|
"//brave/ios/browser/*",
|
|
"//brave/renderer/*",
|
|
"//brave/test/*",
|
|
"//brave/utility/*",
|
|
"//chrome/common/*",
|
|
"//chrome/browser/*",
|
|
"//chrome/renderer/*",
|
|
"//chrome/utility/*",
|
|
]
|
|
|
|
source_set("channel_info") {
|
|
visibility = brave_common_visibility_targets
|
|
|
|
if (is_linux) {
|
|
sources = [
|
|
"brave_channel_info_posix.cc",
|
|
"brave_channel_info_posix.h",
|
|
]
|
|
|
|
deps = [
|
|
"//base",
|
|
"//components/version_info",
|
|
]
|
|
|
|
configs += [ "//brave/build/linux:linux_channel_names" ]
|
|
}
|
|
}
|
|
|
|
group("common") {
|
|
public_deps = [ "//chrome/common" ]
|
|
}
|
|
|
|
source_set("webui_url_constants") {
|
|
visibility = brave_common_visibility_targets
|
|
|
|
sources = [ "webui_url_constants.h" ]
|
|
}
|
|
|
|
config("constants_configs") {
|
|
visibility = brave_common_visibility_targets +
|
|
# These are layering violation and need to be fixed
|
|
[ "//chrome/tools/build/mac:infoplist_strings_util" ]
|
|
defines = []
|
|
if (is_mac) {
|
|
defines += [ "BRAVE_PRODUCT_STRING=\"$chrome_product_full_name\"" ]
|
|
}
|
|
}
|
|
|
|
mojom("mojo_bindings") {
|
|
sources = [ "brave_renderer_configuration.mojom" ]
|
|
|
|
enabled_features = []
|
|
if (enable_brave_wallet) {
|
|
enabled_features += [ "enable_brave_wallet" ]
|
|
}
|
|
|
|
deps = [ "//mojo/public/mojom/base" ]
|
|
}
|