OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//services/service_manager/public/service_manifest.gni") | 5 import("//services/service_manager/public/service_manifest.gni") |
6 | 6 |
7 source_set("lib") { | 7 group("network") { |
| 8 visibility = [ "//content/*" ] # This is an internal content API. |
| 9 |
| 10 if (is_component_build) { |
| 11 public_deps = [ |
| 12 "//content", |
| 13 ] |
| 14 } else { |
| 15 public_deps = [ |
| 16 ":network_sources", |
| 17 ] |
| 18 } |
| 19 } |
| 20 |
| 21 source_set("network_sources") { |
| 22 # Depend on via ":network above. |
| 23 visibility = [ |
| 24 ":network", |
| 25 "//content", # For the component build. |
| 26 "//content/app:*", |
| 27 "//content/utility:utility", |
| 28 ] |
| 29 |
8 sources = [ | 30 sources = [ |
| 31 "net_adapters.cc", |
| 32 "net_adapters.h", |
| 33 "network_context.cc", |
| 34 "network_context.h", |
9 "network_service.cc", | 35 "network_service.cc", |
10 "network_service.h", | 36 "network_service.h", |
| 37 "url_loader_impl.cc", |
| 38 "url_loader_impl.h", |
11 ] | 39 ] |
12 | 40 |
13 configs += [ "//content:content_implementation" ] | 41 configs += [ "//content:content_implementation" ] |
14 | 42 |
15 deps = [ | 43 deps = [ |
16 "//base", | 44 "//base", |
| 45 "//content:export", |
| 46 "//content/common", |
17 "//content/common:mojo_bindings", | 47 "//content/common:mojo_bindings", |
| 48 "//content/public/common:common_sources", |
18 "//mojo/public/cpp/bindings", | 49 "//mojo/public/cpp/bindings", |
| 50 "//net", |
| 51 "//services/service_manager/public/interfaces", |
19 "//services/service_manager/public/cpp", | 52 "//services/service_manager/public/cpp", |
20 ] | 53 ] |
21 } | 54 } |
22 | 55 |
23 service_manifest("manifest") { | 56 service_manifest("manifest") { |
24 name = "network" | 57 name = "network" |
25 source = "manifest.json" | 58 source = "manifest.json" |
26 } | 59 } |
OLD | NEW |