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

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: Windows? Again! 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') | net/DEPS » ('J')
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..3e16c7f96975e2547ae8e6cf59bd977239829401 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -790,6 +790,40 @@ if (use_v8_in_net) {
}
}
+if (use_v8_in_net && !is_android) {
+ static_library("net_browser_services") {
+ sources = [
+ "dns/host_resolver_service_impl.cc",
+ "dns/host_resolver_service_impl.h",
+ ]
+
+ defines = [ "NET_IMPLEMENTATION" ]
Sam McNally 2015/02/05 23:58:36 Remove.
Anand Mistry (off Chromium) 2015/02/06 06:32:40 Done.
+ public_deps = [
+ ":net",
+ ":type_converters",
+ "//net/interfaces",
+ "//third_party/mojo/src/mojo/public/cpp/bindings",
+ ]
+ deps = [
+ "//mojo/environment:chromium",
Sam McNally 2015/02/05 23:58:36 This should be in test deps instead.
Anand Mistry (off Chromium) 2015/02/06 06:32:40 Done.
+ "//third_party/mojo/src/mojo/edk/system",
+ ]
+ }
+
+ static_library("type_converters") {
+ sources = [
+ "dns/type_converters.cc",
+ "dns/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 +1353,15 @@ if (!is_android && !is_win && !is_mac) {
]
}
+ if (use_v8_in_net && !is_android) {
+ deps += [
+ ":net_browser_services",
+ "//third_party/mojo/src/mojo/edk/system",
+ ]
+ } else {
+ sources -= [ "dns/host_resolver_service_impl_unittest.cc" ]
+ }
+
if (!enable_mdns) {
sources -= [
"dns/mdns_cache_unittest.cc",
« no previous file with comments | « no previous file | net/DEPS » ('j') | net/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698