Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: net/BUILD.gn

Issue 892393005: Implement browser-side host resolver Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-interfaces
Patch Set: Change static_library to source_set. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 52444d59ea4a765dbf23711ab50d232593c8079f..47a5a033d5c00c827e60e35b21e78bea77bf47c3 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -790,6 +790,35 @@ if (use_v8_in_net) {
}
}
+if (use_v8_in_net && !is_android) {
+ source_set("net_browser_services") {
+ sources = [
+ "dns/mojo_host_resolver_impl.cc",
+ "dns/mojo_host_resolver_impl.h",
+ ]
+
+ public_deps = [
+ ":mojo_type_converters",
+ ":net",
+ "//net/interfaces",
+ "//third_party/mojo/src/mojo/public/cpp/bindings",
+ ]
+ }
+
+ source_set("mojo_type_converters") {
+ sources = [
+ "dns/mojo_type_converters.cc",
+ "dns/mojo_type_converters.h",
+ ]
+
+ public_deps = [
+ ":net",
+ "//net/interfaces",
+ "//third_party/mojo/src/mojo/public/cpp/bindings",
+ ]
+ }
+}
+
if (!is_ios && !is_android) {
executable("crash_cache") {
testonly = true
@@ -1319,6 +1348,16 @@ if (!is_android && !is_win && !is_mac) {
]
}
+ if (use_v8_in_net && !is_android) {
+ deps += [
+ ":net_browser_services",
+ "//mojo/environment:chromium",
+ "//third_party/mojo/src/mojo/edk/system",
+ ]
+ } else {
+ sources -= [ "dns/mojo_host_resolver_impl_unittest.cc" ]
+ }
+
if (!enable_mdns) {
sources -= [
"dns/mdns_cache_unittest.cc",
« no previous file with comments | « no previous file | net/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698